net: fix checksum offload for outer IPv4
authorMohsin Kazmi <mohsin.kazmi14@gmail.com>
Tue, 7 Sep 2021 10:49:16 +0000 (12:49 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 15 Sep 2021 10:51:49 +0000 (12:51 +0200)
commit818ce1132ab69c5bb34ede0120776f71969dc091
tree5db522616a35729ef7e222c3102d78470ead7685
parentb37ed6def36798342172f298516c5fc6d0d8e070
net: fix checksum offload for outer IPv4

Preparation of the headers for the hardware offload
misses the outer IPv4 checksum offload.
It results in bad checksum computed by hardware NIC.

This patch fixes the issue by setting the outer IPv4
checksum field to 0.

Fixes: 4fb7e803eb1a ("ethdev: add Tx preparation")
Cc: stable@dpdk.org
Signed-off-by: Mohsin Kazmi <mohsin.kazmi14@gmail.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/net/rte_net.h