diff options
author | Ronak Doshi | 2018-03-16 22:49:19 +0100 |
---|---|---|
committer | David S. Miller | 2018-03-18 01:03:53 +0100 |
commit | 034f405793897a3c8f642935f5494b86c340cde7 (patch) | |
tree | 7e5d27e94b0c1a5f5591aaf0be68356e5b0927bd /kernel/sys_ni.c | |
parent | vmxnet3: avoid xmit reset due to a race in vmxnet3 (diff) | |
download | kernel-qcow2-linux-034f405793897a3c8f642935f5494b86c340cde7.tar.gz kernel-qcow2-linux-034f405793897a3c8f642935f5494b86c340cde7.tar.xz kernel-qcow2-linux-034f405793897a3c8f642935f5494b86c340cde7.zip |
vmxnet3: use correct flag to indicate LRO feature
'Commit 45dac1d6ea04 ("vmxnet3: Changes for vmxnet3 adapter version 2
(fwd)")' introduced a flag "lro" in structure vmxnet3_adapter which is
used to indicate whether LRO is enabled or not. However, the patch
did not set the flag and hence it was never exercised.
So, when LRO is enabled, it resulted in poor TCP performance due to
delayed acks. This issue is seen with packets which are larger than
the mss getting a delayed ack rather than an immediate ack, thus
resulting in high latency.
This patch removes the lro flag and directly uses device features
against NETIF_F_LRO to check if lro is enabled.
Fixes: 45dac1d6ea04 ("vmxnet3: Changes for vmxnet3 adapter version 2 (fwd)")
Reported-by: Rachel Lunnon <rachel_lunnon@stormagic.com>
Signed-off-by: Ronak Doshi <doshir@vmware.com>
Acked-by: Shrikrishna Khare <skhare@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/sys_ni.c')
0 files changed, 0 insertions, 0 deletions