xref: /openbmc/linux/include/net/netns/can.h (revision dea54fba)
1 /*
2  * can in net namespaces
3  */
4 
5 #ifndef __NETNS_CAN_H__
6 #define __NETNS_CAN_H__
7 
8 #include <linux/spinlock.h>
9 
10 struct dev_rcv_lists;
11 struct s_stats;
12 struct s_pstats;
13 
14 struct netns_can {
15 #if IS_ENABLED(CONFIG_PROC_FS)
16 	struct proc_dir_entry *proc_dir;
17 	struct proc_dir_entry *pde_version;
18 	struct proc_dir_entry *pde_stats;
19 	struct proc_dir_entry *pde_reset_stats;
20 	struct proc_dir_entry *pde_rcvlist_all;
21 	struct proc_dir_entry *pde_rcvlist_fil;
22 	struct proc_dir_entry *pde_rcvlist_inv;
23 	struct proc_dir_entry *pde_rcvlist_sff;
24 	struct proc_dir_entry *pde_rcvlist_eff;
25 	struct proc_dir_entry *pde_rcvlist_err;
26 	struct proc_dir_entry *bcmproc_dir;
27 #endif
28 
29 	/* receive filters subscribed for 'all' CAN devices */
30 	struct dev_rcv_lists *can_rx_alldev_list;
31 	spinlock_t can_rcvlists_lock;
32 	struct timer_list can_stattimer;/* timer for statistics update */
33 	struct s_stats *can_stats;	/* packet statistics */
34 	struct s_pstats *can_pstats;	/* receive list statistics */
35 
36 	/* CAN GW per-net gateway jobs */
37 	struct hlist_head cgw_list;
38 };
39 
40 #endif /* __NETNS_CAN_H__ */
41