net/vmxnet3: reset packet type for non-IPv4 packets
authorGeorge Wilkie <george.wilkie@intl.att.com>
Wed, 10 Jan 2018 17:08:52 +0000 (17:08 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sun, 21 Jan 2018 14:51:52 +0000 (15:51 +0100)
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>
drivers/net/vmxnet3/vmxnet3_rxtx.c

index f9416f3..abea641 100644 (file)
@@ -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;
        }
 }