Skip to contentSkip to conversation

can: network namespace support for CAN_BCM protocol

PATCH New Oliver Hartkopp 1 participant 1 message Apr 16, 2017

Subsystems (3)
lore
Share & tools
lore

Oliver Hartkopp

author maintainer
#0 lore raw

PATCH 1/1 can: network namespace support for CAN_BCM protocol

The 'can: initial support for network namespaces' from Mario Kicherer did not contain the CAN_BCM protocol and its procfs entries. This patch enables the broadcast manager to be used in different namespaces.

---
 include/net/netns/can.h |  1 +
 net/can/bcm.c           | 90 ++++++++++++++++++++++++++++++++-----------------
 2 files changed, 60 insertions(+), 31 deletions(-)
include/net/netns/can.h +1 -0
index 574157dbc43a..0f3c31aab8a8 100644
@@ -23,6 +23,7 @@ struct netns_can {
 	struct proc_dir_entry *pde_rcvlist_sff;
 	struct proc_dir_entry *pde_rcvlist_eff;
 	struct proc_dir_entry *pde_rcvlist_err;
+	struct proc_dir_entry *bcmproc_dir;
 #endif
 
 	/* receive filters subscribed for 'all' CAN devices */
net/can/bcm.c +59 -31

262 lines not on this page · raw message

Signature · 1 line
2.11.0