examples/ipsec-secgw: fix IPv4 checksum at Tx
[dpdk.git] / examples / ipsec-secgw / ipsec-secgw.c
index ff576eb..a0faddf 100644 (file)
@@ -330,6 +330,7 @@ prepare_tx_pkt(struct rte_mbuf *pkt, uint16_t port)
                pkt->l3_len = sizeof(struct ip);
                pkt->l2_len = ETHER_HDR_LEN;
 
+               ip->ip_sum = 0;
                ethhdr->ether_type = rte_cpu_to_be_16(ETHER_TYPE_IPv4);
        } else {
                pkt->ol_flags |= PKT_TX_IPV6;