diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-04-25 15:59:44 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-26 07:52:02 +0200 |
commit | 925f5afedb93f7c80958c6bf7ce6cc31542076dc (patch) | |
tree | ea5aa25c130f56d87bcccba92f8bfe0d43fe58b3 /drivers/net/netdevsim/netdevsim.h | |
parent | netdevsim: rename devlink.c to dev.c to contain per-dev(asic) items (diff) | |
download | linux-925f5afedb93f7c80958c6bf7ce6cc31542076dc.tar.xz linux-925f5afedb93f7c80958c6bf7ce6cc31542076dc.zip |
netdevsim: put netdevsim bus code into separate file
As the code related to netdevsim bus is going to get bigger, move the
existing code to a separate file.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-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 23d19b461873..7a144aa7965a 100644 --- a/drivers/net/netdevsim/netdevsim.h +++ b/drivers/net/netdevsim/netdevsim.h @@ -188,3 +188,10 @@ static inline struct netdevsim *to_nsim(struct device *ptr) { return container_of(ptr, struct netdevsim, dev); } + +int nsim_num_vf(struct device *dev); + +extern struct bus_type nsim_bus; + +int nsim_bus_init(void); +void nsim_bus_exit(void); |