hv_netvsc: avoid repeated updates of packet filter
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 7 Mar 2018 21:49:10 +0000 (13:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Mar 2018 17:48:56 +0000 (12:48 -0500)
commit7eeb4a6ee4820c4e84895d252079a797f27fc80d
tree6f0e4256c0d7ce88403a1f466ba4da4dbaceb9b3
parentde3d50aadd40bf68614db9fd157b275ce9c2d467
hv_netvsc: avoid repeated updates of packet filter

The netvsc driver can get repeated calls to netvsc_rx_mode during
network setup; each of these calls ends up scheduling the lower
layers to update tha packet filter. This update requires an
request/response to the host. So avoid doing this if we already
know that the correct packet filter value is set.

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/rndis_filter.c