numam-dpdk/lib/net
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
..
meson.build lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
net_crc_avx512.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
net_crc_neon.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
net_crc_sse.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
net_crc.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_arp.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_arp.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_ecpri.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_esp.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_ether.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_ether.h net: add endianness annotations to ethernet headers 2021-05-11 15:22:26 +02:00
rte_geneve.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_gre.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_gtp.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_higig.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_icmp.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_ip.h net: introduce functions to verify L4 checksums 2021-07-02 19:03:03 +02:00
rte_mpls.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_net_crc.c log: register with standardized names 2021-05-11 15:17:55 +02:00
rte_net_crc.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_net.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_net.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_sctp.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_tcp.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_udp.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_vxlan.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
version.map lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00