On 11/5/2021 3:48 AM, Xing, Beilei wrote:


-----Original Message-----
From: Wang, Jie1X <jie1x.w...@intel.com>
Sent: Friday, November 5, 2021 11:37 AM
To: dev@dpdk.org
Cc: Zhang, Yuying <yuying.zh...@intel.com>; Li, Xiaoyun
<xiaoyun...@intel.com>; Yang, SteveX <stevex.y...@intel.com>; Xing, Beilei
<beilei.x...@intel.com>; Zhang, Qi Z <qi.z.zh...@intel.com>; Wang, Jie1X
<jie1x.w...@intel.com>; sta...@dpdk.org
Subject: [PATCH v2] net/i40e: fix forward outer IPv6 VXLAN packets

Testpmd forwards packets in checksum mode that it need to calculate the
checksum of each layer's protocol. Then it will fill flags and header length 
into
mbuf.

In process_outer_cksums, HW calculates the outer checksum if tx_offloads
contains outer UDP checksum otherwise SW calculates the outer checksum.

When tx_offloads contains outer UDP checksum or outer IPv4 checksum,
mbuf will be filled with correct header length.

This patch added outer UDP checksum in tx_offload_capa and
I40E_TX_OFFLOAD_MASK, when we set csum hw outer-udp on that the
engine can forward outer IPv6 VXLAN packets.

Fixes: 7497d3e2f777 ("net/i40e: convert to new Tx offloads API")
Cc: sta...@dpdk.org

Signed-off-by: Jie Wang <jie1x.w...@intel.com>
Acked-by: Beilei Xing <beilei.x...@intel.com>


For record,
This patch has been merged to next-net-intel, and pulled to next-net from there.

Reply via email to