Skip to content

Commit 598c45b

Browse files
Shahed Shaikhdavem330
authored andcommitted
qlcnic: Do not force adapter to perform LRO without destination IP check
Forcing adapter to perform LRO without destination IP check degrades the performance. Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4c8e84b commit 598c45b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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);

0 commit comments

Comments
 (0)