View | Details | Raw Unified | Return to bug 239118 | Differences between
and this patch

Collapse All | Expand All

(-)sys/dev/vmware/vmxnet3/if_vmx.c (-2 / +3 lines)
Lines 1393-1402 vmxnet3_isc_txd_credits_update(void *vsc, uint16_t Link Here
1393
			return (1);
1393
			return (1);
1394
		vmxnet3_barrier(sc, VMXNET3_BARRIER_RD);
1394
		vmxnet3_barrier(sc, VMXNET3_BARRIER_RD);
1395
1395
1396
		if (++txc->vxcr_next == txc->vxcr_ndesc) {
1396
		if (txc->vxcr_next + 1 == txc->vxcr_ndesc) {
1397
			txc->vxcr_next = 0;
1397
			txc->vxcr_next = 0;
1398
			txc->vxcr_gen ^= 1;
1398
			txc->vxcr_gen ^= 1;
1399
		}
1399
		} else
1400
			txc->vxcr_next++;
1400
1401
1401
		if (txcd->eop_idx < txr->vxtxr_next)
1402
		if (txcd->eop_idx < txr->vxtxr_next)
1402
			processed += txr->vxtxr_ndesc -
1403
			processed += txr->vxtxr_ndesc -

Return to bug 239118