diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-04-12 14:49:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-12 16:49:54 -0700 |
commit | af9095f00d348aebb532b3c443f9397029a98d3e (patch) | |
tree | f2f34e8a93e00c2bef2f513d9e4985ec0007241c /drivers/net/netdevsim/netdevsim.h | |
parent | 3c91d114832027b75a6518734081a2507c5d7a87 (diff) | |
download | linux-af9095f00d348aebb532b3c443f9397029a98d3e.tar.gz linux-af9095f00d348aebb532b3c443f9397029a98d3e.tar.bz2 linux-af9095f00d348aebb532b3c443f9397029a98d3e.zip |
netdevsim: move shared dev creation and destruction into separate file
To make code easier to read, move shared dev bits into a separate file.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netdevsim/netdevsim.h')
-rw-r--r-- | drivers/net/netdevsim/netdevsim.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/netdevsim/netdevsim.h b/drivers/net/netdevsim/netdevsim.h index f04050bcb177..e5d6fea246a5 100644 --- a/drivers/net/netdevsim/netdevsim.h +++ b/drivers/net/netdevsim/netdevsim.h @@ -46,6 +46,13 @@ struct netdevsim_shared_dev { struct list_head bpf_bound_maps; }; +struct netdevsim; + +struct netdevsim_shared_dev *nsim_sdev_get(struct netdevsim *joinns); +void nsim_sdev_put(struct netdevsim_shared_dev *sdev); +int nsim_sdev_init(void); +void nsim_sdev_exit(void); + #define NSIM_IPSEC_MAX_SA_COUNT 33 #define NSIM_IPSEC_VALID BIT(31) |