Skip to contentSkip to conversation

net/ice: support vxlan gpe tunnel offload

PATCH Superseded Mingjin Ye 3 participants 3 messages Oct 18, 2022 – Oct 20, 2022 Network drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Mingjin Ye

author
#0 lore raw

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

PMD does not support VXLAN_GPE tunnel offloading, therefore, it will cause the tx queues overflow and stop working when sending such packets.

This patch adds support for the vxlan gpe.

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
#1 lore raw
Quoted 15 lines

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

Quoted 5 lines

PMD does not support VXLAN_GPE tunnel offloading, therefore, it will cause the tx queues overflow and stop working when sending such packets.

This patch adds support for the vxlan gpe.

Is that an issue on the Tx descriptor if ICE_TXD_CTX_UDP_TUNNELING is not configured with a VxLAN GPE packet? Better to describe the reproduce scenario a little bit here

Quoted 22 lines
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 index renamed from drivers/net/ice/ice_rxtx.c +0 -0

697251c603..0a2b0376ac 100644

drivers/net/ice/ice_rxtx.c +1 -1
@@ -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;
--

2.34.1

Tested-by on v1 1/1
#2 lore raw
In reply to Mingjin Ye
Quoted 16 lines

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

PMD does not support VXLAN_GPE tunnel offloading, therefore, it will cause the tx queues overflow and stop working when sending such packets.

Quoted 6 lines

This patch adds support for the vxlan gpe.

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

Validated and passed.

Regards,

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

--
2.34.1