This patch adds initial support for network namespaces. The changes only
enable support in the CAN raw, proc and af_can code. GW and BCM still
have their checks that ensure that they are used only from the main
namespace.
The patch boils down to moving the global structures, i.e. the global
filter list and their /proc stats, into a per-namespace structure and passing
around the corresponding "struct net" in a lot of different places.
Changes since v1:
- rebased on current HEAD (
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
af_can.c | ||
af_can.h | ||
bcm.c | ||
gw.c | ||
proc.c | ||
raw.c |