• Mario Kicherer's avatar
    can: initial support for network namespaces · 8e8cda6d
    Mario Kicherer authored
    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 (2bfe01ef)
     - fixed overlong line
    Signed-off-by: default avatarMario Kicherer <dev@kicherer.org>
    Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
    8e8cda6d
af_can.c 24.7 KB