netdevsim: Disable VFs on nsim_dev_reload_destroy() call
authorDmytro Linkin <dlinkin@nvidia.com>
Wed, 2 Jun 2021 12:17:15 +0000 (15:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2021 21:08:36 +0000 (14:08 -0700)
commit32ac15d8fd804615e79e365d6825da2a371f91f9
tree5ac5d5150ace464f8a895d2c1ac0d033e1783da5
parentd395381909a32060927e3f90116f938379be0636
netdevsim: Disable VFs on nsim_dev_reload_destroy() call

Move VFs disabling from device release() to nsim_dev_reload_destroy() to
make VFs disabling and ports removal simultaneous.
This is a requirement for VFs ports implemented in next patches.

Signed-off-by: Dmytro Linkin <dlinkin@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/bus.c
drivers/net/netdevsim/dev.c
drivers/net/netdevsim/netdevsim.h