Skip to contentSkip to conversation

myri10ge: fix the invokation of lro_flush_all

PATCH Applied Brice Goglin 2 participants 2 messages May 24, 2009 – May 25, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 myri10ge: fix the invokation of lro_flush_all

Fix the way we check whether lro_flush_all should be called in the myri10ge driver.

---
 drivers/net/myri10ge/myri10ge.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/myri10ge/myri10ge.c +2 -1
index c9a9aca..d317011 100644
@@ -1422,6 +1422,7 @@ myri10ge_clean_rx_done(struct myri10ge_slice_state *ss, int budget)
 {
 	struct myri10ge_rx_done *rx_done = &ss->rx_done;
 	struct myri10ge_priv *mgp = ss->mgp;
+	struct net_device *netdev = mgp->dev;
 	unsigned long rx_bytes = 0;
 	unsigned long rx_packets = 0;
 	unsigned long rx_ok;
@@ -1455,7 +1456,7 @@ myri10ge_clean_rx_done(struct myri10ge_slice_state *ss, int budget)
 	ss->stats.rx_packets += rx_packets;
 	ss->stats.rx_bytes += rx_bytes;
 
-	if (myri10ge_lro)
+	if (netdev->features & NETIF_F_LRO)
 		lro_flush_all(&rx_done->lro_mgr);
 
 	/* restock receive rings if needed */
Signature · 1 line
1.6.2.4