myri10ge: fix tx ring size in ethtool -g
authorBrice Goglin <brice@myri.com>
Fri, 17 Apr 2009 00:56:57 +0000 (17:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Apr 2009 01:00:44 +0000 (18:00 -0700)
Fix tx ring size reported via ethtool -g.

Signed-off-by: Brice Goglin <brice@myri.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/myri10ge/myri10ge.c

index 4a2ab4ebfb82127767f6526162d773c937493da3..291944d0aea3997569e7d84fa04eb746c2458e63 100644 (file)
@@ -1696,7 +1696,7 @@ myri10ge_get_ringparam(struct net_device *netdev,
        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;