From ea602212185a15783b1bd0c8508a9a275a14c0d0 Mon Sep 17 00:00:00 2001 From: Sean Chandler Date: Mon, 22 Aug 2016 16:32:22 -0400 Subject: VPP-345: pull in upstream checksum patch for ICMP packets http://www.dpdk.org/dev/patchwork/patch/15216/ Change-Id: I91b67f3e5c0abff52626e504e2707814ae0c3ed0 Signed-off-by: Sean Chandler (cherry picked from commit dc731bd4b1ad6ea588334c681d1409cbdec9ce67) --- ...nic-bad-L4-checksum-ptype-set-on-ICMP-packets.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 dpdk/dpdk-16.07_patches/0009-enic-bad-L4-checksum-ptype-set-on-ICMP-packets.patch diff --git a/dpdk/dpdk-16.07_patches/0009-enic-bad-L4-checksum-ptype-set-on-ICMP-packets.patch b/dpdk/dpdk-16.07_patches/0009-enic-bad-L4-checksum-ptype-set-on-ICMP-packets.patch new file mode 100644 index 00000000000..71a9d9b5463 --- /dev/null +++ b/dpdk/dpdk-16.07_patches/0009-enic-bad-L4-checksum-ptype-set-on-ICMP-packets.patch @@ -0,0 +1,18 @@ +diff --git a/drivers/net/enic/enic_rxtx.c b/drivers/net/enic/enic_rxtx.c +index 50f0b28..ad59613 100644 +--- a/drivers/net/enic/enic_rxtx.c ++++ b/drivers/net/enic/enic_rxtx.c +@@ -212,9 +212,12 @@ enic_cq_rx_to_pkt_flags(struct cq_desc *cqd, struct rte_mbuf *mbuf) + /* checksum flags */ + if (!enic_cq_rx_desc_csum_not_calc(cqrd) && + (mbuf->packet_type & RTE_PTYPE_L3_IPV4)) { ++ uint32_t l4_flags = mbuf->packet_type & RTE_PTYPE_L4_MASK; ++ + if (unlikely(!enic_cq_rx_desc_ipv4_csum_ok(cqrd))) + pkt_flags |= PKT_RX_IP_CKSUM_BAD; +- if (mbuf->packet_type & (RTE_PTYPE_L4_UDP | RTE_PTYPE_L4_TCP)) { ++ if (l4_flags == RTE_PTYPE_L4_UDP || ++ l4_flags == RTE_PTYPE_L4_TCP) { + if (unlikely(!enic_cq_rx_desc_tcp_udp_csum_ok(cqrd))) + pkt_flags |= PKT_RX_L4_CKSUM_BAD; + } -- cgit 1.2.3-korg