14/12/2023 12:20, Morten Brørup: > > From: Kaiwen Deng [mailto:kaiwenx.d...@intel.com] > > Sent: Thursday, 14 December 2023 10.23 > > > > IEEE 802 packets may have a minimum size limit. The data fields > > should be padded when necessary. In some cases, the padding data > > is not zero. > > > > In 'rte_ipv4_udptcp_cksum_mbuf()', as payload length > > "mbuf->pkt_len - l4_off" is used, which includes padding and if > > padding is not zero it will end up producing wrong checksum. > > > > This patch will use IP header to get the payload size to calculate > > tcp/udp checksum. > > > > Fixes: d178f693bbfe ("net: add UDP/TCP checksum in mbuf segments") > > Cc: sta...@dpdk.org > > > > Signed-off-by: Kaiwen Deng <kaiwenx.d...@intel.com> > > Reviewed-by: Morten Brørup <m...@smartsharesystems.com>
Applied, thanks.