Skip to contentSkip to conversation

ethdev: add GTP PSC QFI field

PATCH Superseded Dariusz Sosnowski 4 participants 8 messages Sep 21, 2022 – Sep 26, 2022

lore
Share & tools
lore
#0 lore raw

cover ethdev: add GTP PSC QFI field

This patch series adds support for modifying GTP PSC QFI field using MODIFY_FIELD action.

Dariusz Sosnowski (2):
ethdev: add GTP PSC QFI field
app/testpmd: add GTP PSC QFI field support

 app/test-pmd/cmdline_flow.c | 2 +-
 lib/ethdev/rte_flow.h       | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/2 ethdev: add GTP PSC QFI field

This patch introduces a GTP PSC QFI field to MODIFY_FIELD flow action.

---
 lib/ethdev/rte_flow.h | 1 +
 1 file changed, 1 insertion(+)
lib/ethdev/rte_flow.h +1 -0
index a79f1e7ef0..e64831f8f1 100644
@@ -3689,6 +3689,7 @@ enum rte_flow_field_id {
 	RTE_FLOW_FIELD_VALUE,		/**< Immediate value. */
 	RTE_FLOW_FIELD_IPV4_ECN,	/**< IPv4 ECN. */
 	RTE_FLOW_FIELD_IPV6_ECN,	/**< IPv6 ECN. */
+	RTE_FLOW_FIELD_GTP_PSC_QFI,	/**< GTP QFI. */
 };
 
 /**
Signature · 1 line
2.25.1
#2 lore raw

Hi Dariusz,
Please merge the testpmd and this commit.
And you can add my ack.

Quoted 31 lines

-----Original Message-----
From: Dariusz Sosnowski <[email protected]>
Sent: Wednesday, 21 September 2022 13:19
To: Ori Kam <[email protected]>; NBU-Contact-Thomas Monjalon (EXTERNAL) <[email protected]>; Ferruh Yigit <[email protected]>; Andrew Rybchenko <[email protected]>
Cc: [email protected]
Subject: [PATCH 1/2] ethdev: add GTP PSC QFI field

This patch introduces a GTP PSC QFI field to MODIFY_FIELD flow action.

---
 lib/ethdev/rte_flow.h | 1 +
 1 file changed, 1 insertion(+)
lib/ethdev/rte_flow.h +1 -1
index a79f1e7ef0..e64831f8f1 100644
@@ -3689,6 +3689,7 @@ enum rte_flow_field_id {
 	RTE_FLOW_FIELD_VALUE,		/**< Immediate value. */
 	RTE_FLOW_FIELD_IPV4_ECN,	/**< IPv4 ECN. */
 	RTE_FLOW_FIELD_IPV6_ECN,	/**< IPv6 ECN. */
+	RTE_FLOW_FIELD_GTP_PSC_QFI,	/**< GTP QFI. */
 };
 
 /**
--

2.25.1

#3 lore raw

Hi Ori,

Quoted 10 lines

-----Original Message-----
From: Ori Kam <[email protected]>
Sent: Wednesday, September 21, 2022 14:43
To: Dariusz Sosnowski <[email protected]>; NBU-Contact-Thomas Monjalon (EXTERNAL) <[email protected]>; Ferruh Yigit <[email protected]>; Andrew Rybchenko <[email protected]>
Cc: [email protected]
Subject: RE: [PATCH 1/2] ethdev: add GTP PSC QFI field

Quoted 3 lines

Hi Dariusz,
Please merge the testpmd and this commit.
And you can add my ack.

Sent v2 to the ML (http://patches.dpdk.org/project/dpdk/patch/[email protected]/)

Thank you.

Best regards,
Dariusz Sosnowski

#4 lore raw

PATCH 2/2 app/testpmd: add GTP PSC QFI field support

In reply to Dariusz Sosnowski

This patch adds support for specifying GTP PSC QFI field as a source or destination of MODIFY_FIELD flow action in testpmd.

An example for copying GTP PSC QFI field using MODIFY_FIELD action:

modify_field op set
dst_type meta
src_type gtp_psc_qfi
width 8

An example of setting GTP PSC QFI value to 0x1f using MODIFY_FIELD action:

modify_field op set
dst_type gtp_psc_qfi
src_type value src_value 1f
width 8

---
 app/test-pmd/cmdline_flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
app/test-pmd/cmdline_flow.c +1 -1
index 7f50028eb7..b9673314b1 100644
@@ -796,7 +796,7 @@ static const char *const modify_field_ids[] = {
 	"udp_port_src", "udp_port_dst",
 	"vxlan_vni", "geneve_vni", "gtp_teid",
 	"tag", "mark", "meta", "pointer", "value",
-	"ipv4_ecn", "ipv6_ecn", NULL
+	"ipv4_ecn", "ipv6_ecn", "gtp_psc_qfi", NULL
 };
 
 /** Maximum number of subsequent tokens and arguments on the stack. */
Signature · 1 line
2.25.1
#5 lore raw

Re: [PATCH 2/2] app/testpmd: add GTP PSC QFI field support

Quoted 22 lines · Dariusz Sosnowski

This patch adds support for specifying GTP PSC QFI field as a source or destination of MODIFY_FIELD flow action in testpmd.

An example for copying GTP PSC QFI field using MODIFY_FIELD action:

modify_field op set
dst_type meta
src_type gtp_psc_qfi
width 8

An example of setting GTP PSC QFI value to 0x1f using MODIFY_FIELD action:

modify_field op set
dst_type gtp_psc_qfi
src_type value src_value 1f
width 8

---

#6 lore raw

PATCH v2 1/1 ethdev: add GTP PSC QFI field

In reply to Dariusz Sosnowski

This patch introduces the GTP PSC QFI modify field support and adds the testpmd CLI command support.

An example for copying GTP QFI field using modify_field action:

modify_field op set
dst_type meta
src_type gtp_psc_qfi
width 8

An example of setting GTP QFI field value to 0x1f using modify_field action:

modify_field op set
dst_type gtp_psc_qfi
src_type value src_value 1f
width 8

---

v2:

* Squashed ethdev and testpmd commits.

 app/test-pmd/cmdline_flow.c | 2 +-
 lib/ethdev/rte_flow.h       | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
app/test-pmd/cmdline_flow.c +1 -1
index 7f50028eb7..b9673314b1 100644
@@ -796,7 +796,7 @@ static const char *const modify_field_ids[] = {
 	"udp_port_src", "udp_port_dst",
 	"vxlan_vni", "geneve_vni", "gtp_teid",
 	"tag", "mark", "meta", "pointer", "value",
-	"ipv4_ecn", "ipv6_ecn", NULL
+	"ipv4_ecn", "ipv6_ecn", "gtp_psc_qfi", NULL
 };
 
 /** Maximum number of subsequent tokens and arguments on the stack. */
lib/ethdev/rte_flow.h +1 -0
index a79f1e7ef0..e64831f8f1 100644
@@ -3689,6 +3689,7 @@ enum rte_flow_field_id {
 	RTE_FLOW_FIELD_VALUE,		/**< Immediate value. */
 	RTE_FLOW_FIELD_IPV4_ECN,	/**< IPv4 ECN. */
 	RTE_FLOW_FIELD_IPV6_ECN,	/**< IPv6 ECN. */
+	RTE_FLOW_FIELD_GTP_PSC_QFI,	/**< GTP QFI. */
 };
 
 /**
Signature · 1 line
2.25.1
#7 lore raw
Quoted 22 lines · Dariusz Sosnowski

This patch introduces the GTP PSC QFI modify field support and adds the testpmd CLI command support.

An example for copying GTP QFI field using modify_field action:

modify_field op set
dst_type meta
src_type gtp_psc_qfi
width 8

An example of setting GTP QFI field value to 0x1f using modify_field action:

modify_field op set
dst_type gtp_psc_qfi
src_type value src_value 1f
width 8

---

Quoted 8 lines

v2:

* Squashed ethdev and testpmd commits.

  app/test-pmd/cmdline_flow.c | 2 +-
  lib/ethdev/rte_flow.h       | 1 +
  2 files changed, 2 insertions(+), 1 deletion(-)

Applied to dpdk-next-net/main, thanks.