Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/tap: fix IPv4 checksum offloading
[ upstream commit 3e9c82e88069b1e6e945479626b4c054edf8ba96 ] Checking that one of RTE_MBUF_F_TX_IPV4 or RTE_MBUF_F_TX_IP_CKSUM is present is not compliant with the offloading API which specifies that IP checksum requires RTE_MBUF_F_TX_IP_CKSUM. On the other hand, RTE_MBUF_F_TX_IP_CKSUM is invalid for IPv6 packets, so we can simply check for RTE_MBUF_F_TX_IP_CKSUM and assume this is an IPv4 packet. Fixes: 8ae3023 ("net/tap: add Rx/Tx checksum offload support") Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Ferruh Yigit <ferruh.yigit@amd.com>
- Loading branch information