aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vmware/vmxnet3
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2017-05-25 10:49:56 +0000
committerAndriy Gapon <avg@FreeBSD.org>2017-05-25 10:49:56 +0000
commitced98d784ba3ac8e6f4cc2d31d3c0d842c6fdd90 (patch)
tree31e08528ba7073b1b533eb71799f7365d9c9467f /sys/dev/vmware/vmxnet3
parentf539305e42d8784dd42789bfc39ebe651564f541 (diff)
Notes
Diffstat (limited to 'sys/dev/vmware/vmxnet3')
-rw-r--r--sys/dev/vmware/vmxnet3/if_vmx.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/dev/vmware/vmxnet3/if_vmx.c b/sys/dev/vmware/vmxnet3/if_vmx.c
index b1bc947b79e6..017ccb0b94d6 100644
--- a/sys/dev/vmware/vmxnet3/if_vmx.c
+++ b/sys/dev/vmware/vmxnet3/if_vmx.c
@@ -2194,6 +2194,20 @@ vmxnet3_rxq_eof(struct vmxnet3_rxqueue *rxq)
} else {
KASSERT(rxd->btype == VMXNET3_BTYPE_BODY,
("%s: non start of frame w/o body buffer", __func__));
+
+ if (m_head == NULL && m_tail == NULL) {
+ /*
+ * This is a continuation of a packet that we
+ * started to drop, but could not drop entirely
+ * because this segment was still owned by the
+ * host. So, drop the remainder now.
+ */
+ vmxnet3_rxq_eof_discard(rxq, rxr, idx);
+ if (!rxcd->eop)
+ vmxnet3_rxq_discard_chain(rxq);
+ goto nextp;
+ }
+
KASSERT(m_head != NULL,
("%s: frame not started?", __func__));