examples/ipsec-secgw: fix IPv4 checksum at Tx
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Wed, 6 Jun 2018 12:04:01 +0000 (13:04 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 23 Jul 2018 23:48:10 +0000 (01:48 +0200)
commitb45be46dfd4548acd8f130841d02e97ab7bc7eb8
tree44ae8215af8f3a9b9ed2345a0fe75e9667e4832b
parentbb44fb6fe7713ddcd023d5b9bacadf074d68092e
examples/ipsec-secgw: fix IPv4 checksum at Tx

For ESP transport and BYPASS mode the app might generate output
packets with invalid IPv4 header checksum.
At least such behavior was observed on few Intel NICs.
The reason is that the app didn't set ipv4 header checksum to zero
before passing it to the HW.

Fixes: 906257e965b7 ("examples/ipsec-secgw: support IPv6")
Cc: stable@dpdk.org
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Radu Nicolau <radu.nicolau@intel.com>
examples/ipsec-secgw/ipsec-secgw.c