diff options
author | Oliver Hartkopp <socketcan@hartkopp.net> | 2017-04-25 08:19:43 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2017-04-25 09:04:30 +0200 |
commit | 1ef83310b81551079af992c4cbb5e089dd1397be (patch) | |
tree | d2d39af10ced10c0afc7a4057c30ccc603468626 /include/net | |
parent | 384317ef4187f59a1cb7a6163444d757340b3bb4 (diff) |
can: network namespace support for CAN gateway
The CAN gateway was not implemented as per-net in the initial network
namespace support by Mario Kicherer (8e8cda6d737d).
This patch enables the CAN gateway to be used in different namespaces.
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/netns/can.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/netns/can.h b/include/net/netns/can.h index 0f3c31aab8a8..b106e6ae2e5b 100644 --- a/include/net/netns/can.h +++ b/include/net/netns/can.h @@ -32,6 +32,9 @@ struct netns_can { struct timer_list can_stattimer;/* timer for statistics update */ struct s_stats *can_stats; /* packet statistics */ struct s_pstats *can_pstats; /* receive list statistics */ + + /* CAN GW per-net gateway jobs */ + struct hlist_head cgw_list; }; #endif /* __NETNS_CAN_H__ */ |