netdevsim: implement dev probe/remove skeleton with port initialization
authorJiri Pirko <jiri@mellanox.com>
Thu, 25 Apr 2019 13:59:53 +0000 (15:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Apr 2019 05:52:02 +0000 (01:52 -0400)
commit8320d145912738655cf631d27aa1829d8b17804e
tree6e7f4ea830549254a04ee3028d6b97f4d60f30dc
parentab1d0cc004d706523dcad7cdad97a2b94eecf169
netdevsim: implement dev probe/remove skeleton with port initialization

Implement netdevsim bus probing of netdevsim devices. For every probed
device create a devlink instance. According to the user-passed value,
create a number of ports represented by devlink port instances.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/bus.c
drivers/net/netdevsim/dev.c
drivers/net/netdevsim/netdev.c
drivers/net/netdevsim/netdevsim.h