net: fix IPv4 checksum
authorHongzhi Guo <guohongzhi1@huawei.com>
Tue, 26 May 2020 10:08:05 +0000 (18:08 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 24 Jun 2020 21:42:20 +0000 (23:42 +0200)
commit06602c671a5ee23f517456424b216b2427c4334c
tree0afa892335f6d776a22aa19e289569024a31b53b
parentce77f03ca380ca3f7411a7f49b8cfbb8167a676f
net: fix IPv4 checksum

0xffff is invalid for IPv4 checksum (RFC1624)

Fixes: 6006818cfb26 ("net: new checksum functions")
Cc: stable@dpdk.org
Signed-off-by: Hongzhi Guo <guohongzhi1@huawei.com>
Reviewed-by: Morten Brørup <mb@smartsharesystems.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_net/rte_ip.h