diff options
author | Sritej Velaga <sritej.velaga@qlogic.com> | 2010-10-07 19:46:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-08 16:59:11 -0400 |
commit | ff1b1bf867ebb7eb5e3ff0eab21c26b830d5e890 (patch) | |
tree | d7c072a061ff2bca6a3320a360d2dfba05386c22 | |
parent | ee07c1a70117fe93cf71686d481791c2498f80d2 (diff) |
qlcnic: change all P3 references to P3P
This patch just rename all P3 #define to P3P.
Signed-off-by: Sritej Velaga <sritej.velaga@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/qlcnic/qlcnic.h | 38 | ||||
-rw-r--r-- | drivers/net/qlcnic/qlcnic_ethtool.c | 42 | ||||
-rw-r--r-- | drivers/net/qlcnic/qlcnic_hdr.h | 24 | ||||
-rw-r--r-- | drivers/net/qlcnic/qlcnic_hw.c | 36 | ||||
-rw-r--r-- | drivers/net/qlcnic/qlcnic_init.c | 4 |
5 files changed, 72 insertions, 72 deletions
diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h index 4025e203e8ae..d32531441b6a 100644 --- a/drivers/net/qlcnic/qlcnic.h +++ b/drivers/net/qlcnic/qlcnic.h | |||
@@ -94,12 +94,12 @@ | |||
94 | #define FIRST_PAGE_GROUP_START 0 | 94 | #define FIRST_PAGE_GROUP_START 0 |
95 | #define FIRST_PAGE_GROUP_END 0x100000 | 95 | #define FIRST_PAGE_GROUP_END 0x100000 |
96 | 96 | ||
97 | #define P3_MAX_MTU (9600) | 97 | #define P3P_MAX_MTU (9600) |
98 | #define P3_MIN_MTU (68) | 98 | #define P3P_MIN_MTU (68) |
99 | #define QLCNIC_MAX_ETHERHDR 32 /* This contains some padding */ | 99 | #define QLCNIC_MAX_ETHERHDR 32 /* This contains some padding */ |
100 | 100 | ||
101 | #define QLCNIC_P3_RX_BUF_MAX_LEN (QLCNIC_MAX_ETHERHDR + ETH_DATA_LEN) | 101 | #define QLCNIC_P3P_RX_BUF_MAX_LEN (QLCNIC_MAX_ETHERHDR + ETH_DATA_LEN) |
102 | #define QLCNIC_P3_RX_JUMBO_BUF_MAX_LEN (QLCNIC_MAX_ETHERHDR + P3_MAX_MTU) | 102 | #define QLCNIC_P3P_RX_JUMBO_BUF_MAX_LEN (QLCNIC_MAX_ETHERHDR + P3P_MAX_MTU) |
103 | #define QLCNIC_CT_DEFAULT_RX_BUF_LEN 2048 | 103 | #define QLCNIC_CT_DEFAULT_RX_BUF_LEN 2048 |
104 | #define QLCNIC_LRO_BUFFER_EXTRA 2048 | 104 | #define QLCNIC_LRO_BUFFER_EXTRA 2048 |
105 | 105 | ||
@@ -307,20 +307,20 @@ struct uni_data_desc{ | |||
307 | /* Magic number to let user know flash is programmed */ | 307 | /* Magic number to let user know flash is programmed */ |
308 | #define QLCNIC_BDINFO_MAGIC 0x12345678 | 308 | #define QLCNIC_BDINFO_MAGIC 0x12345678 |
309 | 309 | ||
310 | #define QLCNIC_BRDTYPE_P3_REF_QG 0x0021 | 310 | #define QLCNIC_BRDTYPE_P3P_REF_QG 0x0021 |
311 | #define QLCNIC_BRDTYPE_P3_HMEZ 0x0022 | 311 | #define QLCNIC_BRDTYPE_P3P_HMEZ 0x0022 |
312 | #define QLCNIC_BRDTYPE_P3_10G_CX4_LP 0x0023 | 312 | #define QLCNIC_BRDTYPE_P3P_10G_CX4_LP 0x0023 |
313 | #define QLCNIC_BRDTYPE_P3_4_GB 0x0024 | 313 | #define QLCNIC_BRDTYPE_P3P_4_GB 0x0024 |
314 | #define QLCNIC_BRDTYPE_P3_IMEZ 0x0025 | 314 | #define QLCNIC_BRDTYPE_P3P_IMEZ 0x0025 |
315 | #define QLCNIC_BRDTYPE_P3_10G_SFP_PLUS 0x0026 | 315 | #define QLCNIC_BRDTYPE_P3P_10G_SFP_PLUS 0x0026 |
316 | #define QLCNIC_BRDTYPE_P3_10000_BASE_T 0x0027 | 316 | #define QLCNIC_BRDTYPE_P3P_10000_BASE_T 0x0027 |
317 | #define QLCNIC_BRDTYPE_P3_XG_LOM 0x0028 | 317 | #define QLCNIC_BRDTYPE_P3P_XG_LOM 0x0028 |
318 | #define QLCNIC_BRDTYPE_P3_4_GB_MM 0x0029 | 318 | #define QLCNIC_BRDTYPE_P3P_4_GB_MM 0x0029 |
319 | #define QLCNIC_BRDTYPE_P3_10G_SFP_CT 0x002a | 319 | #define QLCNIC_BRDTYPE_P3P_10G_SFP_CT 0x002a |
320 | #define QLCNIC_BRDTYPE_P3_10G_SFP_QT 0x002b | 320 | #define QLCNIC_BRDTYPE_P3P_10G_SFP_QT 0x002b |
321 | #define QLCNIC_BRDTYPE_P3_10G_CX4 0x0031 | 321 | #define QLCNIC_BRDTYPE_P3P_10G_CX4 0x0031 |
322 | #define QLCNIC_BRDTYPE_P3_10G_XFP 0x0032 | 322 | #define QLCNIC_BRDTYPE_P3P_10G_XFP 0x0032 |
323 | #define QLCNIC_BRDTYPE_P3_10G_TP 0x0080 | 323 | #define QLCNIC_BRDTYPE_P3P_10G_TP 0x0080 |
324 | 324 | ||
325 | #define QLCNIC_MSIX_TABLE_OFFSET 0x44 | 325 | #define QLCNIC_MSIX_TABLE_OFFSET 0x44 |
326 | 326 | ||
@@ -719,7 +719,7 @@ struct qlcnic_cardrsp_tx_ctx { | |||
719 | 719 | ||
720 | /* MAC */ | 720 | /* MAC */ |
721 | 721 | ||
722 | #define MC_COUNT_P3 38 | 722 | #define MC_COUNT_P3P 38 |
723 | 723 | ||
724 | #define QLCNIC_MAC_NOOP 0 | 724 | #define QLCNIC_MAC_NOOP 0 |
725 | #define QLCNIC_MAC_ADD 1 | 725 | #define QLCNIC_MAC_ADD 1 |
diff --git a/drivers/net/qlcnic/qlcnic_ethtool.c b/drivers/net/qlcnic/qlcnic_ethtool.c index e07adb1dec4f..2568aa665024 100644 --- a/drivers/net/qlcnic/qlcnic_ethtool.c +++ b/drivers/net/qlcnic/qlcnic_ethtool.c | |||
@@ -96,7 +96,7 @@ static const char qlcnic_gstrings_test[][ETH_GSTRING_LEN] = { | |||
96 | static const u32 diag_registers[] = { | 96 | static const u32 diag_registers[] = { |
97 | CRB_CMDPEG_STATE, | 97 | CRB_CMDPEG_STATE, |
98 | CRB_RCVPEG_STATE, | 98 | CRB_RCVPEG_STATE, |
99 | CRB_XG_STATE_P3, | 99 | CRB_XG_STATE_P3P, |
100 | CRB_FW_CAPABILITIES_1, | 100 | CRB_FW_CAPABILITIES_1, |
101 | ISR_INT_STATE_REG, | 101 | ISR_INT_STATE_REG, |
102 | QLCNIC_CRB_DRV_ACTIVE, | 102 | QLCNIC_CRB_DRV_ACTIVE, |
@@ -189,9 +189,9 @@ qlcnic_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) | |||
189 | goto skip; | 189 | goto skip; |
190 | } | 190 | } |
191 | 191 | ||
192 | val = QLCRD32(adapter, P3_LINK_SPEED_REG(pcifn)); | 192 | val = QLCRD32(adapter, P3P_LINK_SPEED_REG(pcifn)); |
193 | ecmd->speed = P3_LINK_SPEED_MHZ * | 193 | ecmd->speed = P3P_LINK_SPEED_MHZ * |
194 | P3_LINK_SPEED_VAL(pcifn, val); | 194 | P3P_LINK_SPEED_VAL(pcifn, val); |
195 | ecmd->duplex = DUPLEX_FULL; | 195 | ecmd->duplex = DUPLEX_FULL; |
196 | ecmd->autoneg = AUTONEG_DISABLE; | 196 | ecmd->autoneg = AUTONEG_DISABLE; |
197 | } else | 197 | } else |
@@ -202,42 +202,42 @@ skip: | |||
202 | ecmd->transceiver = XCVR_EXTERNAL; | 202 | ecmd->transceiver = XCVR_EXTERNAL; |
203 | 203 | ||
204 | switch (adapter->ahw.board_type) { | 204 | switch (adapter->ahw.board_type) { |
205 | case QLCNIC_BRDTYPE_P3_REF_QG: | 205 | case QLCNIC_BRDTYPE_P3P_REF_QG: |
206 | case QLCNIC_BRDTYPE_P3_4_GB: | 206 | case QLCNIC_BRDTYPE_P3P_4_GB: |
207 | case QLCNIC_BRDTYPE_P3_4_GB_MM: | 207 | case QLCNIC_BRDTYPE_P3P_4_GB_MM: |
208 | 208 | ||
209 | ecmd->supported |= SUPPORTED_Autoneg; | 209 | ecmd->supported |= SUPPORTED_Autoneg; |
210 | ecmd->advertising |= ADVERTISED_Autoneg; | 210 | ecmd->advertising |= ADVERTISED_Autoneg; |
211 | case QLCNIC_BRDTYPE_P3_10G_CX4: | 211 | case QLCNIC_BRDTYPE_P3P_10G_CX4: |
212 | case QLCNIC_BRDTYPE_P3_10G_CX4_LP: | 212 | case QLCNIC_BRDTYPE_P3P_10G_CX4_LP: |
213 | case QLCNIC_BRDTYPE_P3_10000_BASE_T: | 213 | case QLCNIC_BRDTYPE_P3P_10000_BASE_T: |
214 | ecmd->supported |= SUPPORTED_TP; | 214 | ecmd->supported |= SUPPORTED_TP; |
215 | ecmd->advertising |= ADVERTISED_TP; | 215 | ecmd->advertising |= ADVERTISED_TP; |
216 | ecmd->port = PORT_TP; | 216 | ecmd->port = PORT_TP; |
217 | ecmd->autoneg = adapter->link_autoneg; | 217 | ecmd->autoneg = adapter->link_autoneg; |
218 | break; | 218 | break; |
219 | case QLCNIC_BRDTYPE_P3_IMEZ: | 219 | case QLCNIC_BRDTYPE_P3P_IMEZ: |
220 | case QLCNIC_BRDTYPE_P3_XG_LOM: | 220 | case QLCNIC_BRDTYPE_P3P_XG_LOM: |
221 | case QLCNIC_BRDTYPE_P3_HMEZ: | 221 | case QLCNIC_BRDTYPE_P3P_HMEZ: |
222 | ecmd->supported |= SUPPORTED_MII; | 222 | ecmd->supported |= SUPPORTED_MII; |
223 | ecmd->advertising |= ADVERTISED_MII; | 223 | ecmd->advertising |= ADVERTISED_MII; |
224 | ecmd->port = PORT_MII; | 224 | ecmd->port = PORT_MII; |
225 | ecmd->autoneg = AUTONEG_DISABLE; | 225 | ecmd->autoneg = AUTONEG_DISABLE; |
226 | break; | 226 | break; |
227 | case QLCNIC_BRDTYPE_P3_10G_SFP_PLUS: | 227 | case QLCNIC_BRDTYPE_P3P_10G_SFP_PLUS: |
228 | case QLCNIC_BRDTYPE_P3_10G_SFP_CT: | 228 | case QLCNIC_BRDTYPE_P3P_10G_SFP_CT: |
229 | case QLCNIC_BRDTYPE_P3_10G_SFP_QT: | 229 | case QLCNIC_BRDTYPE_P3P_10G_SFP_QT: |
230 | ecmd->advertising |= ADVERTISED_TP; | 230 | ecmd->advertising |= ADVERTISED_TP; |
231 | ecmd->supported |= SUPPORTED_TP; | 231 | ecmd->supported |= SUPPORTED_TP; |
232 | check_sfp_module = netif_running(dev) && | 232 | check_sfp_module = netif_running(dev) && |
233 | adapter->has_link_events; | 233 | adapter->has_link_events; |
234 | case QLCNIC_BRDTYPE_P3_10G_XFP: | 234 | case QLCNIC_BRDTYPE_P3P_10G_XFP: |
235 | ecmd->supported |= SUPPORTED_FIBRE; | 235 | ecmd->supported |= SUPPORTED_FIBRE; |
236 | ecmd->advertising |= ADVERTISED_FIBRE; | 236 | ecmd->advertising |= ADVERTISED_FIBRE; |
237 | ecmd->port = PORT_FIBRE; | 237 | ecmd->port = PORT_FIBRE; |
238 | ecmd->autoneg = AUTONEG_DISABLE; | 238 | ecmd->autoneg = AUTONEG_DISABLE; |
239 | break; | 239 | break; |
240 | case QLCNIC_BRDTYPE_P3_10G_TP: | 240 | case QLCNIC_BRDTYPE_P3P_10G_TP: |
241 | if (adapter->ahw.port_type == QLCNIC_XGBE) { | 241 | if (adapter->ahw.port_type == QLCNIC_XGBE) { |
242 | ecmd->autoneg = AUTONEG_DISABLE; | 242 | ecmd->autoneg = AUTONEG_DISABLE; |
243 | ecmd->supported |= (SUPPORTED_FIBRE | SUPPORTED_TP); | 243 | ecmd->supported |= (SUPPORTED_FIBRE | SUPPORTED_TP); |
@@ -381,9 +381,9 @@ static u32 qlcnic_test_link(struct net_device *dev) | |||
381 | struct qlcnic_adapter *adapter = netdev_priv(dev); | 381 | struct qlcnic_adapter *adapter = netdev_priv(dev); |
382 | u32 val; | 382 | u32 val; |
383 | 383 | ||
384 | val = QLCRD32(adapter, CRB_XG_STATE_P3); | 384 | val = QLCRD32(adapter, CRB_XG_STATE_P3P); |
385 | val = XG_LINK_STATE_P3(adapter->ahw.pci_func, val); | 385 | val = XG_LINK_STATE_P3P(adapter->ahw.pci_func, val); |
386 | return (val == XG_LINK_UP_P3) ? 0 : 1; | 386 | return (val == XG_LINK_UP_P3P) ? 0 : 1; |
387 | } | 387 | } |
388 | 388 | ||
389 | static int | 389 | static int |
diff --git a/drivers/net/qlcnic/qlcnic_hdr.h b/drivers/net/qlcnic/qlcnic_hdr.h index 716203e41dc7..4290b80cde1a 100644 --- a/drivers/net/qlcnic/qlcnic_hdr.h +++ b/drivers/net/qlcnic/qlcnic_hdr.h | |||
@@ -556,18 +556,18 @@ enum { | |||
556 | #define XG_LINK_UP 0x10 | 556 | #define XG_LINK_UP 0x10 |
557 | #define XG_LINK_DOWN 0x20 | 557 | #define XG_LINK_DOWN 0x20 |
558 | 558 | ||
559 | #define XG_LINK_UP_P3 0x01 | 559 | #define XG_LINK_UP_P3P 0x01 |
560 | #define XG_LINK_DOWN_P3 0x02 | 560 | #define XG_LINK_DOWN_P3P 0x02 |
561 | #define XG_LINK_STATE_P3_MASK 0xf | 561 | #define XG_LINK_STATE_P3P_MASK 0xf |
562 | #define XG_LINK_STATE_P3(pcifn, val) \ | 562 | #define XG_LINK_STATE_P3P(pcifn, val) \ |
563 | (((val) >> ((pcifn) * 4)) & XG_LINK_STATE_P3_MASK) | 563 | (((val) >> ((pcifn) * 4)) & XG_LINK_STATE_P3P_MASK) |
564 | 564 | ||
565 | #define P3_LINK_SPEED_MHZ 100 | 565 | #define P3P_LINK_SPEED_MHZ 100 |
566 | #define P3_LINK_SPEED_MASK 0xff | 566 | #define P3P_LINK_SPEED_MASK 0xff |
567 | #define P3_LINK_SPEED_REG(pcifn) \ | 567 | #define P3P_LINK_SPEED_REG(pcifn) \ |
568 | (CRB_PF_LINK_SPEED_1 + (((pcifn) / 4) * 4)) | 568 | (CRB_PF_LINK_SPEED_1 + (((pcifn) / 4) * 4)) |
569 | #define P3_LINK_SPEED_VAL(pcifn, reg) \ | 569 | #define P3P_LINK_SPEED_VAL(pcifn, reg) \ |
570 | (((reg) >> (8 * ((pcifn) & 0x3))) & P3_LINK_SPEED_MASK) | 570 | (((reg) >> (8 * ((pcifn) & 0x3))) & P3P_LINK_SPEED_MASK) |
571 | 571 | ||
572 | #define QLCNIC_CAM_RAM_BASE (QLCNIC_CRB_CAM + 0x02000) | 572 | #define QLCNIC_CAM_RAM_BASE (QLCNIC_CRB_CAM + 0x02000) |
573 | #define QLCNIC_CAM_RAM(reg) (QLCNIC_CAM_RAM_BASE + (reg)) | 573 | #define QLCNIC_CAM_RAM(reg) (QLCNIC_CAM_RAM_BASE + (reg)) |
@@ -592,7 +592,7 @@ enum { | |||
592 | #define CRB_CMDPEG_STATE (QLCNIC_REG(0x50)) | 592 | #define CRB_CMDPEG_STATE (QLCNIC_REG(0x50)) |
593 | #define CRB_RCVPEG_STATE (QLCNIC_REG(0x13c)) | 593 | #define CRB_RCVPEG_STATE (QLCNIC_REG(0x13c)) |
594 | 594 | ||
595 | #define CRB_XG_STATE_P3 (QLCNIC_REG(0x98)) | 595 | #define CRB_XG_STATE_P3P (QLCNIC_REG(0x98)) |
596 | #define CRB_PF_LINK_SPEED_1 (QLCNIC_REG(0xe8)) | 596 | #define CRB_PF_LINK_SPEED_1 (QLCNIC_REG(0xe8)) |
597 | #define CRB_PF_LINK_SPEED_2 (QLCNIC_REG(0xec)) | 597 | #define CRB_PF_LINK_SPEED_2 (QLCNIC_REG(0xec)) |
598 | 598 | ||
diff --git a/drivers/net/qlcnic/qlcnic_hw.c b/drivers/net/qlcnic/qlcnic_hw.c index 53e805316f4a..7a47a2a7ee27 100644 --- a/drivers/net/qlcnic/qlcnic_hw.c +++ b/drivers/net/qlcnic/qlcnic_hw.c | |||
@@ -754,9 +754,9 @@ int qlcnic_change_mtu(struct net_device *netdev, int mtu) | |||
754 | struct qlcnic_adapter *adapter = netdev_priv(netdev); | 754 | struct qlcnic_adapter *adapter = netdev_priv(netdev); |
755 | int rc = 0; | 755 | int rc = 0; |
756 | 756 | ||
757 | if (mtu < P3_MIN_MTU || mtu > P3_MAX_MTU) { | 757 | if (mtu < P3P_MIN_MTU || mtu > P3P_MAX_MTU) { |
758 | dev_err(&adapter->netdev->dev, "%d bytes < mtu < %d bytes" | 758 | dev_err(&adapter->netdev->dev, "%d bytes < mtu < %d bytes" |
759 | " not supported\n", P3_MAX_MTU, P3_MIN_MTU); | 759 | " not supported\n", P3P_MAX_MTU, P3P_MIN_MTU); |
760 | return -EINVAL; | 760 | return -EINVAL; |
761 | } | 761 | } |
762 | 762 | ||
@@ -1161,31 +1161,31 @@ int qlcnic_get_board_info(struct qlcnic_adapter *adapter) | |||
1161 | 1161 | ||
1162 | adapter->ahw.board_type = board_type; | 1162 | adapter->ahw.board_type = board_type; |
1163 | 1163 | ||
1164 | if (board_type == QLCNIC_BRDTYPE_P3_4_GB_MM) { | 1164 | if (board_type == QLCNIC_BRDTYPE_P3P_4_GB_MM) { |
1165 | u32 gpio = QLCRD32(adapter, QLCNIC_ROMUSB_GLB_PAD_GPIO_I); | 1165 | u32 gpio = QLCRD32(adapter, QLCNIC_ROMUSB_GLB_PAD_GPIO_I); |
1166 | if ((gpio & 0x8000) == 0) | 1166 | if ((gpio & 0x8000) == 0) |
1167 | board_type = QLCNIC_BRDTYPE_P3_10G_TP; | 1167 | board_type = QLCNIC_BRDTYPE_P3P_10G_TP; |
1168 | } | 1168 | } |
1169 | 1169 | ||
1170 | switch (board_type) { | 1170 | switch (board_type) { |
1171 | case QLCNIC_BRDTYPE_P3_HMEZ: | 1171 | case QLCNIC_BRDTYPE_P3P_HMEZ: |
1172 | case QLCNIC_BRDTYPE_P3_XG_LOM: | 1172 | case QLCNIC_BRDTYPE_P3P_XG_LOM: |
1173 | case QLCNIC_BRDTYPE_P3_10G_CX4: | 1173 | case QLCNIC_BRDTYPE_P3P_10G_CX4: |
1174 | case QLCNIC_BRDTYPE_P3_10G_CX4_LP: | 1174 | case QLCNIC_BRDTYPE_P3P_10G_CX4_LP: |
1175 | case QLCNIC_BRDTYPE_P3_IMEZ: | 1175 | case QLCNIC_BRDTYPE_P3P_IMEZ: |
1176 | case QLCNIC_BRDTYPE_P3_10G_SFP_PLUS: | 1176 | case QLCNIC_BRDTYPE_P3P_10G_SFP_PLUS: |
1177 | case QLCNIC_BRDTYPE_P3_10G_SFP_CT: | 1177 | case QLCNIC_BRDTYPE_P3P_10G_SFP_CT: |
1178 | case QLCNIC_BRDTYPE_P3_10G_SFP_QT: | 1178 | case QLCNIC_BRDTYPE_P3P_10G_SFP_QT: |
1179 | case QLCNIC_BRDTYPE_P3_10G_XFP: | 1179 | case QLCNIC_BRDTYPE_P3P_10G_XFP: |
1180 | case QLCNIC_BRDTYPE_P3_10000_BASE_T: | 1180 | case QLCNIC_BRDTYPE_P3P_10000_BASE_T: |
1181 | adapter->ahw.port_type = QLCNIC_XGBE; | 1181 | adapter->ahw.port_type = QLCNIC_XGBE; |
1182 | break; | 1182 | break; |
1183 | case QLCNIC_BRDTYPE_P3_REF_QG: | 1183 | case QLCNIC_BRDTYPE_P3P_REF_QG: |
1184 | case QLCNIC_BRDTYPE_P3_4_GB: | 1184 | case QLCNIC_BRDTYPE_P3P_4_GB: |
1185 | case QLCNIC_BRDTYPE_P3_4_GB_MM: | 1185 | case QLCNIC_BRDTYPE_P3P_4_GB_MM: |
1186 | adapter->ahw.port_type = QLCNIC_GBE; | 1186 | adapter->ahw.port_type = QLCNIC_GBE; |
1187 | break; | 1187 | break; |
1188 | case QLCNIC_BRDTYPE_P3_10G_TP: | 1188 | case QLCNIC_BRDTYPE_P3P_10G_TP: |
1189 | adapter->ahw.port_type = (adapter->portnum < 2) ? | 1189 | adapter->ahw.port_type = (adapter->portnum < 2) ? |
1190 | QLCNIC_XGBE : QLCNIC_GBE; | 1190 | QLCNIC_XGBE : QLCNIC_GBE; |
1191 | break; | 1191 | break; |
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; |