Re: [PATCH net-next v2] can: initial support for network namespaces

2017-04-10 Thread Mario Kicherer
Hello Oliver, You didn't include the statistics here: + struct s_stats *can_stats; /* packet statistics */ + struct s_pstats *can_pstats;/* receive list statistics */ which need to be per-net too, right? I was not sure how this information is used - e.g., maybe just as d

Re: [PATCH net-next] can: initial support for network namespaces

2017-02-21 Thread Mario Kicherer
Hartkopp wrote: > Hello Mario, > > thanks for your patch. > > On 02/16/2017 12:39 PM, Mario Kicherer wrote: >> 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 t

[PATCH net-next v2] can: initial support for network namespaces

2017-02-21 Thread Mario Kicherer
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 (2bfe01e) - fixed overlong line Signed-off-by: Mario Kicherer --- include/linux/can/core.

[PATCH net-next] can: initial support for network namespaces

2017-02-16 Thread Mario Kicherer
filter list and their /proc stats, into a per-namespace structure and passing around the corresponding "struct net" in a lot of different places. Signed-off-by: Mario Kicherer --- include/linux/can/core.h| 8 +-- include/net/net_namespace.h | 4 ++ include/net/netns/can.h