can.h 1.1 KB

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