summaryrefslogtreecommitdiff
path: root/drivers/net/netdevsim/netdevsim.h
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2019-04-25 16:59:44 +0300
committerDavid S. Miller <davem@davemloft.net>2019-04-26 08:52:02 +0300
commit925f5afedb93f7c80958c6bf7ce6cc31542076dc (patch)
treeea5aa25c130f56d87bcccba92f8bfe0d43fe58b3 /drivers/net/netdevsim/netdevsim.h
parent8fb4bc6fd5bd5bab9a34581e45b00d9a041d1d71 (diff)
downloadlinux-925f5afedb93f7c80958c6bf7ce6cc31542076dc.tar.xz
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 'drivers/net/netdevsim/netdevsim.h')
-rw-r--r--drivers/net/netdevsim/netdevsim.h7
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);