netdevsim: add all ports in nsim_dev_create() and del them in destroy()
authorJiri Pirko <jiri@mellanox.com>
Thu, 3 Oct 2019 09:49:35 +0000 (11:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Oct 2019 18:10:56 +0000 (11:10 -0700)
commit7f36a77ade6eefc243c64c64b8f8252fa43ea55e
tree4ccca921ffeeb18e96f1063471f896c4ee51e3ea
parent5bcfb6a45a614253a65ad45904fba4d93bde372d
netdevsim: add all ports in nsim_dev_create() and del them in destroy()

Currently the probe/remove function does this separately. Put the
addition an deletion of ports into nsim_dev_create() and
nsim_dev_destroy().

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/dev.c