Re: [dpdk-dev] [PATCH] net: calculate checksums for packets with IPv4 options

2020-08-29 Thread Andrew Rybchenko
On 8/21/20 2:32 PM, Michael Pfeiffer wrote: > Currently, rte_ipv4_cksum() and rte_ipv4_udptcp_cksum() assume all IPv4 > headers have sizeof(struct rte_ipv4_hdr) bytes. This is not true for > those (rare) packets with IPv4 options. Thus, both IPv4 and TCP/UDP > checksums are calculated wrong. > > T

[dpdk-dev] [PATCH] net: calculate checksums for packets with IPv4 options

2020-08-21 Thread Michael Pfeiffer
Currently, rte_ipv4_cksum() and rte_ipv4_udptcp_cksum() assume all IPv4 headers have sizeof(struct rte_ipv4_hdr) bytes. This is not true for those (rare) packets with IPv4 options. Thus, both IPv4 and TCP/UDP checksums are calculated wrong. This patch fixes the issue by using the actual IPv4 heade