]> git.droids-corp.org - dpdk.git/commit
net/i40e: fix forward outer IPv6 VXLAN
authorJie Wang <jie1x.wang@intel.com>
Fri, 5 Nov 2021 03:37:05 +0000 (11:37 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 5 Nov 2021 04:31:22 +0000 (05:31 +0100)
commit8cc79a1636cda2e9d6ba4cfd1cf16cf2a782ae1b
tree42ec9332ff314fb1730b120443a9352b3c02589e
parent25ed2ebff131dededf0cb3ac38ce196a41b76f43
net/i40e: fix forward outer IPv6 VXLAN

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: stable@dpdk.org
Signed-off-by: Jie Wang <jie1x.wang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/i40e_ethdev.c
drivers/net/i40e/i40e_rxtx.c