]> 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)
commit8698fd3e24a424bc6e41e03471e0aac0379486e7
tree801b50f67b0133295a6730a5685dd88b36721871
parent33256a7ea00d44931ec1fa214d9b019b3097a55a
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