netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] myri10ge: fix the invokation of lro_flush_all
@ 2009-05-24 15:27 Brice Goglin
  2009-05-25  7:36 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Brice Goglin @ 2009-05-24 15:27 UTC (permalink / raw)
  To: David S. Miller; +Cc: Linux Network Development list

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

Signed-off-by: Brice Goglin <brice@myri.com>
---
 drivers/net/myri10ge/myri10ge.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c
index c9a9aca..d317011 100644
--- a/drivers/net/myri10ge/myri10ge.c
+++ b/drivers/net/myri10ge/myri10ge.c
@@ -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 */
-- 
1.6.2.4




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/3] myri10ge: fix the invokation of lro_flush_all
  2009-05-24 15:27 [PATCH 1/3] myri10ge: fix the invokation of lro_flush_all Brice Goglin
@ 2009-05-25  7:36 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-05-25  7:36 UTC (permalink / raw)
  To: brice; +Cc: netdev

From: Brice Goglin <brice@myri.com>
Date: Sun, 24 May 2009 17:27:41 +0200

> Fix the way we check whether lro_flush_all should be called
> in the myri10ge driver.
> 
> Signed-off-by: Brice Goglin <brice@myri.com>

Applied to net-next-2.6

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-05-25  7:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-24 15:27 [PATCH 1/3] myri10ge: fix the invokation of lro_flush_all Brice Goglin
2009-05-25  7:36 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).