]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - include/net/netns/can.h
can: complete initial namespace support
[mirror_ubuntu-bionic-kernel.git] / include / net / netns / can.h
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 #endif
27
28 /* receive filters subscribed for 'all' CAN devices */
29 struct dev_rcv_lists *can_rx_alldev_list;
30 spinlock_t can_rcvlists_lock;
31 struct timer_list can_stattimer;/* timer for statistics update */
32 struct s_stats *can_stats; /* packet statistics */
33 struct s_pstats *can_pstats; /* receive list statistics */
34 };
35
36 #endif /* __NETNS_CAN_H__ */