diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2009-03-13 10:52:03 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-14 17:00:32 -0400 |
commit | 438627c77b877e445a4b918a50ff910a5ea2a12d (patch) | |
tree | 254abcb0c57f6c57947428f9c8ec38b6904801fc /drivers/net/netxen/netxen_nic_ethtool.c | |
parent | 0b72e659a10ec50acbef90756bf04177b66c8266 (diff) |
netxen: sanitize variable names
o remove max_ prefix from ring sizes, since they don't really
represent max possible sizes.
o cleanup naming of rx ring types (normal, jumbo, lro).
o simplify logic to choose rx ring size, gig ports get half
rx ring of 10 gig ports.
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_ethtool.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_ethtool.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/netxen/netxen_nic_ethtool.c b/drivers/net/netxen/netxen_nic_ethtool.c index 8b4bdfd6a117..a677ff895184 100644 --- a/drivers/net/netxen/netxen_nic_ethtool.c +++ b/drivers/net/netxen/netxen_nic_ethtool.c | |||
@@ -477,10 +477,10 @@ netxen_nic_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ring) | |||
477 | ring->rx_pending = 0; | 477 | ring->rx_pending = 0; |
478 | ring->rx_jumbo_pending = 0; | 478 | ring->rx_jumbo_pending = 0; |
479 | ring->rx_pending += adapter->recv_ctx. | 479 | ring->rx_pending += adapter->recv_ctx. |
480 | rds_rings[RCV_DESC_NORMAL_CTXID].max_rx_desc_count; | 480 | rds_rings[RCV_RING_NORMAL].num_desc; |
481 | ring->rx_jumbo_pending += adapter->recv_ctx. | 481 | ring->rx_jumbo_pending += adapter->recv_ctx. |
482 | rds_rings[RCV_DESC_JUMBO_CTXID].max_rx_desc_count; | 482 | rds_rings[RCV_RING_JUMBO].num_desc; |
483 | ring->tx_pending = adapter->max_tx_desc_count; | 483 | ring->tx_pending = adapter->num_txd; |
484 | 484 | ||
485 | if (adapter->ahw.port_type == NETXEN_NIC_GBE) | 485 | if (adapter->ahw.port_type == NETXEN_NIC_GBE) |
486 | ring->rx_max_pending = MAX_RCV_DESCRIPTORS_1G; | 486 | ring->rx_max_pending = MAX_RCV_DESCRIPTORS_1G; |