netdevsim: move netdev creation/destruction to dev probe
authorJiri Pirko <jiri@mellanox.com>
Thu, 25 Apr 2019 13:59:55 +0000 (15:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Apr 2019 05:52:03 +0000 (01:52 -0400)
commite05b2d141fef22cfac1928cf0eb6890e5dae4216
tree055d8c4330e6e9002a2bf4e9829febe8df84d59f
parent794b2c05ca1c4ded4a023d11833e3855a0ed6ea8
netdevsim: move netdev creation/destruction to dev probe

Remove the existing way to create netdevsim over rtnetlink and move the
netdev creation/destruction to dev probe, so for every probed port,
a netdevsim-netdev instance is created.

Adjust selftests to work with new interface.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/bpf.c
drivers/net/netdevsim/bus.c
drivers/net/netdevsim/dev.c
drivers/net/netdevsim/ipsec.c
drivers/net/netdevsim/netdev.c
drivers/net/netdevsim/netdevsim.h
tools/testing/selftests/bpf/test_offload.py
tools/testing/selftests/net/rtnetlink.sh