Thread (6 messages) 6 messages, 4 authors, 2019-03-28

Re: [PATCH hyperv-fixes] hv_netvsc: Fix unwanted wakeup after tx_disable

From: David Miller <davem@davemloft.net>
Date: 2019-03-28 19:21:46
Also in: linux-hyperv, lkml

From: Haiyang Zhang <redacted>
Date: Thu, 28 Mar 2019 17:48:45 +0000
quoted hunk ↗ jump to hunk
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index 1a08679..0824155 100644
--- a/drivers/net/hyperv/netvsc_drv.c
+++ b/drivers/net/hyperv/netvsc_drv.c
@@ -109,6 +109,15 @@ static void netvsc_set_rx_mode(struct net_device *net)
 	rcu_read_unlock();
 }
 
+static inline void netvsc_tx_enable(struct netvsc_device *nvscdev,
+				    struct net_device *ndev)
Do not use inline in foo.c files, let the compiler decide.
quoted hunk ↗ jump to hunk
@@ -184,6 +193,17 @@ static int netvsc_wait_until_empty(struct netvsc_device *nvdev)
 	}
 }
 
+static inline void netvsc_tx_disable(struct netvsc_device *nvscdev,
+				     struct net_device *ndev)
+{
Likewise.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help