net/tap: fix Rx checksum flags on IP options packets
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 30 Jun 2021 13:51:55 +0000 (15:51 +0200)
committerAndrew Rybchenko <Andrew.Rybchenko@oktetlabs.ru>
Fri, 2 Jul 2021 17:03:03 +0000 (19:03 +0200)
commita46bd97f60e6be8ac5d8d3a0657a60e66176a405
tree543f49d44672e4faf3dd1f37144ac1b96151147b
parent422d7823a980d50bfbb7c8fcf5f84a1a26648563
net/tap: fix Rx checksum flags on IP options packets

When packet type is IPV4_EXT, the checksum is always marked as good in
the mbuf offload flags.

Since we know the header lengths, we can easily call
rte_ipv4_udptcp_cksum() in this case too.

Fixes: 8ae3023387e9 ("net/tap: add Rx/Tx checksum offload support")
Cc: stable@dpdk.org
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
drivers/net/tap/rte_eth_tap.c