netxen: add netxen_nic_ctx.c
Contains rx and tx ring context management and certain firmware commands for netxen firmware v4.0.0+. This patch gathers all HW context management code into netxen_nic_ctx.c. Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
committed by
Jeff Garzik
parent
a97342f979
commit
48bfd1e0fc
@@ -524,9 +524,9 @@ netxen_nic_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ring)
|
||||
ring->rx_jumbo_pending = 0;
|
||||
for (i = 0; i < MAX_RCV_CTX; ++i) {
|
||||
ring->rx_pending += adapter->recv_ctx[i].
|
||||
rcv_desc[RCV_DESC_NORMAL_CTXID].max_rx_desc_count;
|
||||
rds_rings[RCV_DESC_NORMAL_CTXID].max_rx_desc_count;
|
||||
ring->rx_jumbo_pending += adapter->recv_ctx[i].
|
||||
rcv_desc[RCV_DESC_JUMBO_CTXID].max_rx_desc_count;
|
||||
rds_rings[RCV_DESC_JUMBO_CTXID].max_rx_desc_count;
|
||||
}
|
||||
ring->tx_pending = adapter->max_tx_desc_count;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user