netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] myri10ge: fix tx ring size in ethtool -g
@ 2009-04-16 12:28 Brice Goglin
  2009-04-17  0:58 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Brice Goglin @ 2009-04-16 12:28 UTC (permalink / raw)
  To: David S. Miller; +Cc: Linux Network Development list

Fix tx ring size reported via ethtool -g.

Signed-off-by; Brice Goglin <brice@myri.com>

--- linux-tmp.old/drivers/net/myri10ge/myri10ge.c    2009-04-09
14:00:16.000000000 +0200
+++ linux-tmp/drivers/net/myri10ge/myri10ge.c    2009-04-10
23:11:59.000000000 +0200
@@ -1696,7 +1696,7 @@
     ring->rx_mini_max_pending = mgp->ss[0].rx_small.mask + 1;
     ring->rx_max_pending = mgp->ss[0].rx_big.mask + 1;
     ring->rx_jumbo_max_pending = 0;
-    ring->tx_max_pending = mgp->ss[0].rx_small.mask + 1;
+    ring->tx_max_pending = mgp->ss[0].tx.mask + 1;
     ring->rx_mini_pending = ring->rx_mini_max_pending;
     ring->rx_pending = ring->rx_max_pending;
     ring->rx_jumbo_pending = ring->rx_jumbo_max_pending;


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

end of thread, other threads:[~2009-04-17  0:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-16 12:28 [PATCH net-next] myri10ge: fix tx ring size in ethtool -g Brice Goglin
2009-04-17  0:58 ` 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).