aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vmware
diff options
context:
space:
mode:
authorVincenzo Maffione <vmaffione@FreeBSD.org>2020-09-01 20:41:47 +0000
committerVincenzo Maffione <vmaffione@FreeBSD.org>2020-09-01 20:41:47 +0000
commit35d8a463e8097cffb0e4942c0e3f3b5412ea7953 (patch)
treead5869c5d1db073e296c4c630d2d777a9a591abb /sys/dev/vmware
parentf7eec6b204f10f9f62f78dfe3e9e0ba42a3649fa (diff)
Notes
Diffstat (limited to 'sys/dev/vmware')
-rw-r--r--sys/dev/vmware/vmxnet3/if_vmx.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/dev/vmware/vmxnet3/if_vmx.c b/sys/dev/vmware/vmxnet3/if_vmx.c
index ee1d76388577..5d9872d01737 100644
--- a/sys/dev/vmware/vmxnet3/if_vmx.c
+++ b/sys/dev/vmware/vmxnet3/if_vmx.c
@@ -1744,13 +1744,6 @@ vmxnet3_isc_rxd_flush(void *vsc, uint16_t rxqid, uint8_t flid, qidx_t pidx)
else
r = VMXNET3_BAR0_RXH2(rxqid);
- /*
- * pidx is the index of the last descriptor with a buffer the device
- * can use, and the device needs to be told which index is one past
- * that.
- */
- if (++pidx == rxr->vxrxr_ndesc)
- pidx = 0;
vmxnet3_write_bar0(sc, r, pidx);
}