net: fix Intel prepare function for IP checksum offload
authorDidier Pallard <didier.pallard@6wind.com>
Wed, 19 Sep 2018 14:42:08 +0000 (16:42 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 27 Sep 2018 23:41:02 +0000 (01:41 +0200)
commitae0207d4b5048a6af9bc30e0956d30461b813148
tree2a68932eadef96a1dd60543ec0565e6fed91a59d
parentdcbbbd069217cef1c71601e0809e870df1545e47
net: fix Intel prepare function for IP checksum offload

Current Intel tx prepare function does not properly handle the
case where only IP checksum is requested, without requesting
any L4 checksum or TSO: IP checksum is not properly reset to 0
and output packet may contain invalid IP checksum.

Fixes: 4fb7e803eb1a ("ethdev: add Tx preparation")
Cc: stable@dpdk.org
Signed-off-by: Didier Pallard <didier.pallard@6wind.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_net/rte_net.h