Mario Kicherer | 8e8cda6 | 2017-02-21 12:19:47 +0100 | [diff] [blame] | 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; |
Oliver Hartkopp | cb5635a | 2017-04-25 08:19:41 +0200 | [diff] [blame] | 11 | struct s_stats; |
| 12 | struct s_pstats; |
Mario Kicherer | 8e8cda6 | 2017-02-21 12:19:47 +0100 | [diff] [blame] | 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; |
Oliver Hartkopp | 384317e | 2017-04-25 08:19:42 +0200 | [diff] [blame] | 26 | struct proc_dir_entry *bcmproc_dir; |
Mario Kicherer | 8e8cda6 | 2017-02-21 12:19:47 +0100 | [diff] [blame] | 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; |
Oliver Hartkopp | cb5635a | 2017-04-25 08:19:41 +0200 | [diff] [blame] | 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 */ |
Oliver Hartkopp | 1ef8331 | 2017-04-25 08:19:43 +0200 | [diff] [blame] | 35 | |
| 36 | /* CAN GW per-net gateway jobs */ |
| 37 | struct hlist_head cgw_list; |
Mario Kicherer | 8e8cda6 | 2017-02-21 12:19:47 +0100 | [diff] [blame] | 38 | }; |
| 39 | |
| 40 | #endif /* __NETNS_CAN_H__ */ |