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)
commitec158f77def2df084d9f62565357e3037b04bd3f
tree801b50f67b0133295a6730a5685dd88b36721871
parent9a0c48df0d77602da3958a4c8fc2abb9521b0ade
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