Skip to contentSkip to conversation

net/ice: support vxlan gpe tunnel offload

PATCH Applied Mingjin Ye 3 participants 3 messages Oct 21, 2022 – Oct 24, 2022 Network drivers

lore
Share & tools
lore

Mingjin Ye

author
#0 lore raw

PATCH v2 1/1 net/ice: support vxlan gpe tunnel offload

PMD tx path does not support VXLAN_GPE tunnel offload. Because it does not process RTE_MBUF_F_TX_TUNNEL_VXLAN_GPE flag in mbuf, and then the "L4TUNT" field will not be set in Tx context descriptor.

This patch is to add the RTE_MBUF_F_TX_TUNNEL_VXLAN_GPE flag to support Tx VXLAN_GPE offload under the scenario if the offload tso and VXLAN_GPE tunnel are both required, so that it would avoid tx queue overflowing.

Fixes daa02b5cddbb ("mbuf: add namespace to offload flags")
---
 drivers/net/ice/ice_rxtx.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ice/ice_rxtx.c +1 -0
index 697251c603..0a2b0376ac 100644
@@ -2690,6 +2690,7 @@ ice_parse_tunneling_params(uint64_t ol_flags,
 		/* for non UDP / GRE tunneling, set to 00b */
 		break;
 	case RTE_MBUF_F_TX_TUNNEL_VXLAN:
+	case RTE_MBUF_F_TX_TUNNEL_VXLAN_GPE:
 	case RTE_MBUF_F_TX_TUNNEL_GTP:
 	case RTE_MBUF_F_TX_TUNNEL_GENEVE:
 		*cd_tunneling |= ICE_TXD_CTX_UDP_TUNNELING;
Signature · 1 line
2.34.1
Tested-by on v2 1/1
#1 lore raw
Quoted 24 lines

-----Original Message-----
From: Mingjin Ye <[email protected]>
Sent: Friday, October 21, 2022 9:00 PM
To: [email protected]
Cc: [email protected]; Zhou, YidingX <[email protected]>; Ye, MingjinX <[email protected]>; Yang, Qiming <[email protected]>; Zhang, Qi Z <[email protected]>; Somnath Kotur <[email protected]>; Matz, Olivier <[email protected]>; Ajit Khaparde <[email protected]>; Andrew Rybchenko <[email protected]>
Subject: [PATCH v2] net/ice: support vxlan gpe tunnel offload

PMD tx path does not support VXLAN_GPE tunnel offload. Because it does not process RTE_MBUF_F_TX_TUNNEL_VXLAN_GPE flag in mbuf, and then the "L4TUNT"
field will not be set in Tx context descriptor.

This patch is to add the RTE_MBUF_F_TX_TUNNEL_VXLAN_GPE flag to support Tx VXLAN_GPE offload under the scenario if the offload tso and VXLAN_GPE tunnel are both required, so that it would avoid tx queue overflowing.

Quoted 4 lines
Fixes daa02b5cddbb ("mbuf: add namespace to offload flags")

Verified and passed.

Quoted 6 lines
---
 drivers/net/ice/ice_rxtx.c | 1 +
 1 file changed, 1 insertion(+)

--
2.34.1

Applied
#2 lore raw
Quoted 40 lines

-----Original Message-----
From: Xu, Ke1 <[email protected]>
Sent: Friday, October 21, 2022 5:14 PM
To: Ye, MingjinX <[email protected]>; [email protected]
Cc: [email protected]; Zhou, YidingX <[email protected]>; Ye, MingjinX <[email protected]>; Yang, Qiming <[email protected]>; Zhang, Qi Z <[email protected]>; Somnath Kotur <[email protected]>; Matz, Olivier <[email protected]>; Ajit Khaparde <[email protected]>; Andrew Rybchenko <[email protected]>
Subject: RE: [PATCH v2] net/ice: support vxlan gpe tunnel offload

Quoted 9 lines

-----Original Message-----
From: Mingjin Ye <[email protected]>
Sent: Friday, October 21, 2022 9:00 PM
To: [email protected]
Cc: [email protected]; Zhou, YidingX <[email protected]>; Ye, MingjinX <[email protected]>; Yang, Qiming <[email protected]>; Zhang, Qi Z <[email protected]>; Somnath Kotur <[email protected]>; Matz, Olivier <[email protected]>; Ajit Khaparde

<[email protected]>;

Quoted 5 lines

Andrew Rybchenko <[email protected]>
Subject: [PATCH v2] net/ice: support vxlan gpe tunnel offload

PMD tx path does not support VXLAN_GPE tunnel offload. Because it does not process RTE_MBUF_F_TX_TUNNEL_VXLAN_GPE flag in mbuf, and then

the

Quoted 8 lines

"L4TUNT"
field will not be set in Tx context descriptor.

This patch is to add the RTE_MBUF_F_TX_TUNNEL_VXLAN_GPE flag to support Tx VXLAN_GPE offload under the scenario if the offload tso and VXLAN_GPE tunnel are both required, so that it would avoid tx queue overflowing.

Quoted 7 lines
Quoted 4 lines
Fixes daa02b5cddbb ("mbuf: add namespace to offload flags")

Verified and passed.

Applied to dpdk-next-net-intel.

Thanks
Qi