summaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/hyperv_net.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2018-03-07 22:49:10 +0100
committerDavid S. Miller <davem@davemloft.net>2018-03-08 18:48:56 +0100
commit7eeb4a6ee4820c4e84895d252079a797f27fc80d (patch)
tree6f0e4256c0d7ce88403a1f466ba4da4dbaceb9b3 /drivers/net/hyperv/hyperv_net.h
parenthv_netvsc: fix filter flags (diff)
downloadlinux-7eeb4a6ee4820c4e84895d252079a797f27fc80d.tar.xz
linux-7eeb4a6ee4820c4e84895d252079a797f27fc80d.zip
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>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r--drivers/net/hyperv/hyperv_net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h
index 0db3bd1ea06f..cd538d5a7986 100644
--- a/drivers/net/hyperv/hyperv_net.h
+++ b/drivers/net/hyperv/hyperv_net.h
@@ -173,6 +173,7 @@ struct rndis_device {
struct list_head req_list;
struct work_struct mcast_work;
+ u32 filter;
bool link_state; /* 0 - link up, 1 - link down */