* [dpdk-dev] [PATCH] app/testpmd: add support of GTP message type
@ 2020-01-16 18:49 Dekel Peled
2020-01-17 13:21 ` Ferruh Yigit
0 siblings, 1 reply; 2+ messages in thread
From: Dekel Peled @ 2020-01-16 18:49 UTC (permalink / raw)
To: adrien.mazarguil, wenzhuo.lu, jingjing.wu, bernard.iremonger; +Cc: orika, dev
This patch adds CLI option to enter the msg_type value for GTP
flow pattern item.
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
---
app/test-pmd/cmdline_flow.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
index 99dade7..dfa74a0 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,
@@ -909,6 +910,7 @@ struct parse_action_priv {
};
static const enum index item_gtp[] = {
+ ITEM_GTP_MSG_TYPE,
ITEM_GTP_TEID,
ITEM_NEXT,
ZERO,
@@ -2257,6 +2259,13 @@ static int comp_set_raw_index(struct context *, const struct token *,
.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",
--
1.8.3.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] app/testpmd: add support of GTP message type
2020-01-16 18:49 [dpdk-dev] [PATCH] app/testpmd: add support of GTP message type Dekel Peled
@ 2020-01-17 13:21 ` Ferruh Yigit
0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2020-01-17 13:21 UTC (permalink / raw)
To: Dekel Peled, adrien.mazarguil, wenzhuo.lu, jingjing.wu,
bernard.iremonger
Cc: orika, dev
On 1/16/2020 6:49 PM, Dekel Peled wrote:
> This patch adds CLI option to enter the msg_type value for GTP
> flow pattern item.
>
> Signed-off-by: Dekel Peled <dekelp@mellanox.com>
> Acked-by: Ori Kam <orika@mellanox.com>
Applied to dpdk-next-net/master, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-17 13:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-16 18:49 [dpdk-dev] [PATCH] app/testpmd: add support of GTP message type Dekel Peled
2020-01-17 13:21 ` Ferruh Yigit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).