aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordon Tetlow <gordon@FreeBSD.org>2020-08-05 17:09:54 +0000
committerGordon Tetlow <gordon@FreeBSD.org>2020-08-05 17:09:54 +0000
commit4ea4239800cc131032c2e23ce468e0db2d9df453 (patch)
tree3d986b29b1c32a91e5ca60cd18440f7d5f7cc1b0
parent46b2ed296e1ca3ef2f46c3acac887eb2d10c2c4f (diff)
downloadsrc-4ea4239800cc131032c2e23ce468e0db2d9df453.tar.gz
src-4ea4239800cc131032c2e23ce468e0db2d9df453.zip
Fix vmx driver packet loss and degraded performance.
Approved by: so Security: FreeBSD-EN-20:16.vmx
Notes
Notes: svn path=/releng/12.1/; revision=363920
-rw-r--r--sys/dev/vmware/vmxnet3/if_vmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vmware/vmxnet3/if_vmx.c b/sys/dev/vmware/vmxnet3/if_vmx.c
index 6c8aaf87387f..ffd938a100cd 100644
--- a/sys/dev/vmware/vmxnet3/if_vmx.c
+++ b/sys/dev/vmware/vmxnet3/if_vmx.c
@@ -1320,7 +1320,7 @@ vmxnet3_isc_txd_encap(void *vsc, if_pkt_info_t pi)
hdrlen = pi->ipi_ehdrlen + pi->ipi_ip_hlen;
if (pi->ipi_csum_flags & CSUM_TSO) {
sop->offload_mode = VMXNET3_OM_TSO;
- sop->hlen = hdrlen;
+ sop->hlen = hdrlen + pi->ipi_tcp_hlen;
sop->offload_pos = pi->ipi_tso_segsz;
} else if (pi->ipi_csum_flags & (VMXNET3_CSUM_OFFLOAD |
VMXNET3_CSUM_OFFLOAD_IPV6)) {