From: Dekel Peled Date: Thu, 16 Jan 2020 18:49:25 +0000 (+0200) Subject: app/testpmd: support GTP message type X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=47e7ad1b91811fe04ae8bd1fe1928c5e06cc79fe;p=dpdk.git app/testpmd: support GTP message type This patch adds CLI option to enter the msg_type value for GTP flow pattern item. Signed-off-by: Dekel Peled Acked-by: Ori Kam --- diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index f7e0a62203..3c56bdbe6b 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -168,6 +168,7 @@ enum index { ITEM_FUZZY, ITEM_FUZZY_THRESH, ITEM_GTP, + ITEM_GTP_MSG_TYPE, ITEM_GTP_TEID, ITEM_GTPC, ITEM_GTPU, @@ -919,6 +920,7 @@ static const enum index item_gre_key[] = { }; static const enum index item_gtp[] = { + ITEM_GTP_MSG_TYPE, ITEM_GTP_TEID, ITEM_NEXT, ZERO, @@ -2293,6 +2295,13 @@ static const struct token token_list[] = { .next = NEXT(item_gtp), .call = parse_vc, }, + [ITEM_GTP_MSG_TYPE] = { + .name = "msg_type", + .help = "GTP message type", + .next = NEXT(item_gtp, NEXT_ENTRY(UNSIGNED), item_param), + .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_gtp, + msg_type)), + }, [ITEM_GTP_TEID] = { .name = "teid", .help = "tunnel endpoint identifier",