mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-03 04:06:43 +07:00
1ef83310b8
The CAN gateway was not implemented as per-net in the initial network
namespace support by Mario Kicherer (8e8cda6d73
).
This patch enables the CAN gateway to be used in different namespaces.
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
41 lines
1.0 KiB
C
41 lines
1.0 KiB
C
/*
|
|
* can in net namespaces
|
|
*/
|
|
|
|
#ifndef __NETNS_CAN_H__
|
|
#define __NETNS_CAN_H__
|
|
|
|
#include <linux/spinlock.h>
|
|
|
|
struct dev_rcv_lists;
|
|
struct s_stats;
|
|
struct s_pstats;
|
|
|
|
struct netns_can {
|
|
#if IS_ENABLED(CONFIG_PROC_FS)
|
|
struct proc_dir_entry *proc_dir;
|
|
struct proc_dir_entry *pde_version;
|
|
struct proc_dir_entry *pde_stats;
|
|
struct proc_dir_entry *pde_reset_stats;
|
|
struct proc_dir_entry *pde_rcvlist_all;
|
|
struct proc_dir_entry *pde_rcvlist_fil;
|
|
struct proc_dir_entry *pde_rcvlist_inv;
|
|
struct proc_dir_entry *pde_rcvlist_sff;
|
|
struct proc_dir_entry *pde_rcvlist_eff;
|
|
struct proc_dir_entry *pde_rcvlist_err;
|
|
struct proc_dir_entry *bcmproc_dir;
|
|
#endif
|
|
|
|
/* receive filters subscribed for 'all' CAN devices */
|
|
struct dev_rcv_lists *can_rx_alldev_list;
|
|
spinlock_t can_rcvlists_lock;
|
|
struct timer_list can_stattimer;/* timer for statistics update */
|
|
struct s_stats *can_stats; /* packet statistics */
|
|
struct s_pstats *can_pstats; /* receive list statistics */
|
|
|
|
/* CAN GW per-net gateway jobs */
|
|
struct hlist_head cgw_list;
|
|
};
|
|
|
|
#endif /* __NETNS_CAN_H__ */
|