numam-dpdk/drivers
Olivier Matz 45a08ef55e net: introduce functions to verify L4 checksums
Since commit d5df2ae042 ("net: fix unneeded replacement of TCP
checksum 0"), the functions rte_ipv4_udptcp_cksum() and
rte_ipv6_udptcp_cksum() can return either 0x0000 or 0xffff when used to
verify a packet containing a valid checksum.

Since these functions should be used to calculate the checksum to set in
a packet, introduce 2 new helpers for checksum verification. They return
0 if the checksum is valid in the packet.

Use this new helper in net/tap driver.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
2021-07-02 19:03:03 +02:00
..
baseband log: register with standardized names 2021-05-11 15:17:55 +02:00
bus bus/pci: fix leak for unbound devices 2021-07-06 11:27:55 +02:00
common drivers/net: fix memzone allocations for DMA memory 2021-07-07 14:30:30 +02:00
compress log: register with standardized names 2021-05-11 15:17:55 +02:00
crypto crypto/zuc: fix build with GCC 11 2021-05-19 14:54:29 +02:00
event event/octeontx2: configure aura backpressure 2021-06-30 18:43:05 +02:00
mempool mempool/octeontx2: fix shift calculation 2021-06-30 18:42:54 +02:00
net net: introduce functions to verify L4 checksums 2021-07-02 19:03:03 +02:00
raw raw/cnxk_bphy: support BPHY self test 2021-07-05 23:08:48 +02:00
regex log: register with standardized names 2021-05-11 15:17:55 +02:00
vdpa vdpa/mlx5: fix TSO offload without checksum 2021-06-30 13:39:23 +02:00
meson.build log: register with standardized names 2021-05-11 15:17:55 +02:00