]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb41233d4c02db6c85a4df1744e121f6a7ef94f2f
tree4ccca921ffeeb18e96f1063471f896c4ee51e3ea
parent391855726e4d3ca1e5f4e068d5349e09965a126b
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