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

Message ID 20220921101839.1711058-3-dsosnowski@nvidia.com (mailing list archive)
State Superseded, archived
Delegated to: Andrew Rybchenko
Headers
Series ethdev: add GTP PSC QFI field |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-aarch64-unit-testing success Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS
ci/github-robot: build success github build: passed

Commit Message

Dariusz Sosnowski Sept. 21, 2022, 10:18 a.m. UTC
  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

Signed-off-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
---
 app/test-pmd/cmdline_flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Singh, Aman Deep Sept. 21, 2022, 12:46 p.m. UTC | #1
On 9/21/2022 3:48 PM, Dariusz Sosnowski wrote:
> 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
>
> Signed-off-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
> Acked-by: Aman Singh<aman.deep.singh@intel.com>
> ---
>
  

Patch

diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
index 7f50028eb7..b9673314b1 100644
--- a/app/test-pmd/cmdline_flow.c
+++ b/app/test-pmd/cmdline_flow.c
@@ -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. */