[PATCH 21.11] net: fix outer UDP checksum in Intel prepare helper

Kevin Traynor ktraynor at redhat.com
Wed Sep 4 16:30:58 CEST 2024


On 29/08/2024 12:21, David Marchand wrote:
> [ upstream commit f876dbef080932dbeb1de075d7ca3cbe2ed6d7eb ]
> 
> Setting a pseudo header checksum in the outer UDP checksum is a Intel
> (and some other vendors) requirement.
> Applications (like OVS) requesting outer UDP checksum without doing this
> extra setup have broken outer UDP checksums.
> 
> Move this specific setup from testpmd to the "common" helper
> rte_net_intel_cksum_flags_prepare().
> 
> net/hns3 can then be adjusted.
> 
> Bugzilla ID: 1406
> Fixes: d8e5e69f3a9b ("app/testpmd: add GTP parsing and Tx checksum offload")
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> Tested-by: Ali Alnubani <alialnu at nvidia.com>
> ---
>  app/test-pmd/csumonly.c      |  7 ---
>  drivers/net/hns3/hns3_rxtx.c | 93 ++++++++++--------------------------
>  lib/net/rte_net.h            | 18 ++++++-
>  3 files changed, 42 insertions(+), 76 deletions(-)
> 

Thanks David. Applied.

Kevin.



More information about the stable mailing list