app/testpmd: add support for MPLS TTL
PATCH 1/1 app/testpmd: add support for MPLS TTL
Add support for matching "ttl" field in MPLS item.
Signed-off-by Michael Baum <[email protected]>
--- app/test-pmd/cmdline_flow.c | 9 +++++++++ 1 file changed, 9 insertions(+)
app/test-pmd/cmdline_flow.c +9 -0
@@ -365,6 +365,7 @@ enum index {ITEM_MPLS_LABEL ,ITEM_MPLS_TC ,ITEM_MPLS_S , +ITEM_MPLS_TTL ,ITEM_GRE ,ITEM_GRE_PROTO , ITEM_GRE_C_RSVD0_VER,
@@ -1712,6 +1713,7 @@ static const enum index item_mpls[] = {ITEM_MPLS_LABEL ,ITEM_MPLS_TC ,ITEM_MPLS_S , +ITEM_MPLS_TTL ,ITEM_NEXT , ZERO, };
@@ -4650,6 +4652,13 @@ static const struct token token_list[] = { label_tc_s, "\x00\x00\x01")), }, + [ITEM_MPLS_TTL ] = { + .name ="ttl" , + .help ="MPLS Time-to-Live" , + .next =NEXT (item_mpls,NEXT_ENTRY (COMMON_UNSIGNED ), + item_param), + .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_mpls, ttl)), + }, [ITEM_GRE ] = { .name ="gre" , .help ="match GRE header" ,
Signature · 1 line
2.25.1
Quoted 3 lines · Michael Baum
Add support for matching "ttl" field in MPLS item.
Signed-off-by Michael Baum <[email protected]>
Acked-by Aman Singh <[email protected]>
Quoted 38 lines
--- app/test-pmd/cmdline_flow.c | 9 +++++++++ 1 file changed, 9 insertions(+)app/test-pmd/cmdline_flow.c +9
-0@@ -365,6 +365,7 @@ enum index {ITEM_MPLS_LABEL ,ITEM_MPLS_TC ,ITEM_MPLS_S , +ITEM_MPLS_TTL ,ITEM_GRE ,ITEM_GRE_PROTO , ITEM_GRE_C_RSVD0_VER,@@ -1712,6 +1713,7 @@ static const enum index item_mpls[] = {ITEM_MPLS_LABEL ,ITEM_MPLS_TC ,ITEM_MPLS_S , +ITEM_MPLS_TTL ,ITEM_NEXT , ZERO, };@@ -4650,6 +4652,13 @@ static const struct token token_list[] = { label_tc_s, "\x00\x00\x01")), }, + [ITEM_MPLS_TTL ] = { + .name ="ttl" , + .help ="MPLS Time-to-Live" , + .next =NEXT (item_mpls,NEXT_ENTRY (COMMON_UNSIGNED ), + item_param), + .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_mpls, ttl)), + }, [ITEM_GRE ] = { .name ="gre" , .help ="match GRE header" ,
Ferruh Yigit
AppliedQuoted 8 lines · Aman Deep
Quoted 3 lines · Michael Baum
Add support for matching "ttl" field in MPLS item.
Signed-off-by Michael Baum <[email protected]>Acked-by Aman Singh <[email protected]>
Applied to dpdk-next-net/main, thanks.