Re: [PATCH v2] app/test-pmd: fix tcp/udp cksum with padding data

2023-12-07 Thread Ferruh Yigit
On 12/7/2023 8:53 AM, Kaiwen Deng wrote: > 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. Testpmd does not trim these IP packets to the true > length of the frame, so errors will occur when calculatin

[PATCH v2] app/test-pmd: fix tcp/udp cksum with padding data

2023-12-07 Thread Kaiwen Deng
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. Testpmd does not trim these IP packets to the true length of the frame, so errors will occur when calculating TCP or UDP checksum. This commit fixes this is