Skip to content

Commit d49c83d

Browse files
committed
Merge branch 'qlcnic'
Shahed Shaikh says: ==================== qlcnic: Bug fixes This patch series contains following fixes- * Performace drop because driver was forcing adapter not to check destination IP for LRO. * driver was not issuing qlcnic_fw_cmd_set_drv_version() to 83xx adapter becasue of improper handling of QLCNIC_FW_CAPABILITY_MORE_CAPS bit. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents 4c8e84b + d6994ca commit d49c83d

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2276,9 +2276,9 @@ int qlcnic_83xx_get_nic_info(struct qlcnic_adapter *adapter,
22762276
temp = (cmd.rsp.arg[8] & 0x7FFE0000) >> 17;
22772277
npar_info->max_linkspeed_reg_offset = temp;
22782278
}
2279-
if (npar_info->capabilities & QLCNIC_FW_CAPABILITY_MORE_CAPS)
2280-
memcpy(ahw->extra_capability, &cmd.rsp.arg[16],
2281-
sizeof(ahw->extra_capability));
2279+
2280+
memcpy(ahw->extra_capability, &cmd.rsp.arg[16],
2281+
sizeof(ahw->extra_capability));
22822282

22832283
out:
22842284
qlcnic_free_mbx_args(&cmd);

drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -785,8 +785,6 @@ void qlcnic_82xx_config_intr_coalesce(struct qlcnic_adapter *adapter)
785785

786786
#define QLCNIC_ENABLE_IPV4_LRO 1
787787
#define QLCNIC_ENABLE_IPV6_LRO 2
788-
#define QLCNIC_NO_DEST_IPV4_CHECK (1 << 8)
789-
#define QLCNIC_NO_DEST_IPV6_CHECK (2 << 8)
790788

791789
int qlcnic_82xx_config_hw_lro(struct qlcnic_adapter *adapter, int enable)
792790
{
@@ -806,11 +804,10 @@ int qlcnic_82xx_config_hw_lro(struct qlcnic_adapter *adapter, int enable)
806804

807805
word = 0;
808806
if (enable) {
809-
word = QLCNIC_ENABLE_IPV4_LRO | QLCNIC_NO_DEST_IPV4_CHECK;
807+
word = QLCNIC_ENABLE_IPV4_LRO;
810808
if (adapter->ahw->extra_capability[0] &
811809
QLCNIC_FW_CAP2_HW_LRO_IPV6)
812-
word |= QLCNIC_ENABLE_IPV6_LRO |
813-
QLCNIC_NO_DEST_IPV6_CHECK;
810+
word |= QLCNIC_ENABLE_IPV6_LRO;
814811
}
815812

816813
req.words[0] = cpu_to_le64(word);

drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,10 @@ qlcnic_initialize_nic(struct qlcnic_adapter *adapter)
11311131
if (err == -EIO)
11321132
return err;
11331133
adapter->ahw->extra_capability[0] = temp;
1134+
} else {
1135+
adapter->ahw->extra_capability[0] = 0;
11341136
}
1137+
11351138
adapter->ahw->max_mac_filters = nic_info.max_mac_filters;
11361139
adapter->ahw->max_mtu = nic_info.max_mtu;
11371140

@@ -2159,8 +2162,7 @@ void qlcnic_set_drv_version(struct qlcnic_adapter *adapter)
21592162
else if (qlcnic_83xx_check(adapter))
21602163
fw_cmd = QLCNIC_CMD_83XX_SET_DRV_VER;
21612164

2162-
if ((ahw->capabilities & QLCNIC_FW_CAPABILITY_MORE_CAPS) &&
2163-
(ahw->extra_capability[0] & QLCNIC_FW_CAPABILITY_SET_DRV_VER))
2165+
if (ahw->extra_capability[0] & QLCNIC_FW_CAPABILITY_SET_DRV_VER)
21642166
qlcnic_fw_cmd_set_drv_version(adapter, fw_cmd);
21652167
}
21662168

0 commit comments

Comments
 (0)