diff mbox

[dpdk-dev] vmxnet3: set unknown packet_type for non-ipv4 packets

Message ID 1515604132-29083-1-git-send-email-george.wilkie@intl.att.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers show

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail Compilation issues

Commit Message

garwilkie@gmail.com Jan. 10, 2018, 5:08 p.m. UTC
From: George Wilkie <george.wilkie@intl.att.com>

With bonding, after sending sufficient ipv4 packets,
bond_ethdev_rx_burst_8023ad() no longer recognizes LACP packets
because the packet_type is set to RTE_PTYPE_L3_IPV4.
Ensure packet_type is reset for non-ipv4 packets in vmxnet3_rx_offload.

Signed-off-by: George Wilkie <george.wilkie@intl.att.com>
---
 drivers/net/vmxnet3/vmxnet3_rxtx.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Ferruh Yigit Jan. 18, 2018, 12:02 p.m. UTC | #1
On 1/10/2018 5:08 PM, garwilkie@gmail.com wrote:
> From: George Wilkie <george.wilkie@intl.att.com>
> 
> With bonding, after sending sufficient ipv4 packets,
> bond_ethdev_rx_burst_8023ad() no longer recognizes LACP packets
> because the packet_type is set to RTE_PTYPE_L3_IPV4.
> Ensure packet_type is reset for non-ipv4 packets in vmxnet3_rx_offload.
> 
> Signed-off-by: George Wilkie <george.wilkie@intl.att.com>

Acked-by: Shrikrishna Khare <skhare@vmware.com>

Applied to dpdk-next-net/master, thanks.
diff mbox

Patch

diff --git a/drivers/net/vmxnet3/vmxnet3_rxtx.c b/drivers/net/vmxnet3/vmxnet3_rxtx.c
index f9416f3..abea641 100644
--- a/drivers/net/vmxnet3/vmxnet3_rxtx.c
+++ b/drivers/net/vmxnet3/vmxnet3_rxtx.c
@@ -674,6 +674,8 @@  vmxnet3_rx_offload(const Vmxnet3_RxCompDesc *rcd, struct rte_mbuf *rxm)
 			if ((rcd->tcp || rcd->udp) && !rcd->tuc)
 				rxm->ol_flags |= PKT_RX_L4_CKSUM_BAD;
 		}
+	} else {
+		rxm->packet_type = RTE_PTYPE_UNKNOWN;
 	}
 }