[2/2] app/testpmd: add GTP PSC QFI field support
Checks
Commit Message
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
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>
> ---
>
@@ -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. */