aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_init.c')
-rw-r--r--drivers/net/qlcnic/qlcnic_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/qlcnic/qlcnic_init.c b/drivers/net/qlcnic/qlcnic_init.c
index 908a25b5597a..0d180c6e41fe 100644
--- a/drivers/net/qlcnic/qlcnic_init.c
+++ b/drivers/net/qlcnic/qlcnic_init.c
@@ -259,14 +259,14 @@ int qlcnic_alloc_sw_resources(struct qlcnic_adapter *adapter)
259 switch (ring) { 259 switch (ring) {
260 case RCV_RING_NORMAL: 260 case RCV_RING_NORMAL:
261 rds_ring->num_desc = adapter->num_rxd; 261 rds_ring->num_desc = adapter->num_rxd;
262 rds_ring->dma_size = QLCNIC_P3_RX_BUF_MAX_LEN; 262 rds_ring->dma_size = QLCNIC_P3P_RX_BUF_MAX_LEN;
263 rds_ring->skb_size = rds_ring->dma_size + NET_IP_ALIGN; 263 rds_ring->skb_size = rds_ring->dma_size + NET_IP_ALIGN;
264 break; 264 break;
265 265
266 case RCV_RING_JUMBO: 266 case RCV_RING_JUMBO:
267 rds_ring->num_desc = adapter->num_jumbo_rxd; 267 rds_ring->num_desc = adapter->num_jumbo_rxd;
268 rds_ring->dma_size = 268 rds_ring->dma_size =
269 QLCNIC_P3_RX_JUMBO_BUF_MAX_LEN; 269 QLCNIC_P3P_RX_JUMBO_BUF_MAX_LEN;
270 270
271 if (adapter->capabilities & QLCNIC_FW_CAPABILITY_HW_LRO) 271 if (adapter->capabilities & QLCNIC_FW_CAPABILITY_HW_LRO)
272 rds_ring->dma_size += QLCNIC_LRO_BUFFER_EXTRA; 272 rds_ring->dma_size += QLCNIC_LRO_BUFFER_EXTRA;