]> git.baikalelectronics.ru Git - kernel.git/commit
netvsc: allow driver to be removed even if VF is present
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 31 Aug 2017 23:16:13 +0000 (16:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Sep 2017 03:31:19 +0000 (20:31 -0700)
commitac27e0c986b96824bc12811c25adc963e5de0a83
tree801b50f67b0133295a6730a5685dd88b36721871
parentc05b32f397ea8dbc9d53aa6eb0670e872a5840cd
netvsc: allow driver to be removed even if VF is present

If VF is attached then can still allow netvsc driver module to
be removed. Just have to make sure and do the cleanup.

Also, avoid extra rtnl round trip when calling unregister.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c