netvsc: change logic for change mtu and set_queues
authorstephen hemminger <stephen@networkplumber.org>
Wed, 19 Jul 2017 18:53:15 +0000 (11:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Jul 2017 05:20:05 +0000 (22:20 -0700)
commitea383bf146be1e190f1d696e7db060afa8c93c31
treea5b3d3109f2435c0a3bc67ae3b4837360cf6f58e
parenta5e1ec3833211bc0136649a89ee3a29355c7b43b
netvsc: change logic for change mtu and set_queues

Use device detach/attach to ensure that no packets are handed
to device during state changes. Call rndis_filter_open/close
directly as part of later VF related changes.

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