net/tap: fix rx cksum flags on IP options packets
authorOlivier Matz <olivier.matz@6wind.com>
Tue, 27 Apr 2021 09:40:02 +0000 (11:40 +0200)
committerOlivier Matz <olivier.matz@6wind.com>
Tue, 27 Apr 2021 09:47:50 +0000 (11:47 +0200)
commit95821be17bafa77f742913f7876944c97786ae78
tree52267a23b7f21285b213e012ac13e7d63700a4d0
parent1b593b9c832e9b284cc59665fe662242a3fc1daf
net/tap: fix rx cksum 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>
drivers/net/tap/rte_eth_tap.c