[dpdk-dev] [dpdk-dev v3 3/4] app/testpmd: support GTP PDU type

Jeff Guo jia.guo at intel.com
Sat Apr 11 02:09:44 CEST 2020


Add gtp pdu type configure in the cmdline.

Signed-off-by: Jeff Guo <jia.guo at intel.com>
---
v3->v2:
1.move gtp pdu index from normal to special. 
---
 app/test-pmd/cmdline_flow.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
index e6ab8ff2f..6ea553446 100644
--- a/app/test-pmd/cmdline_flow.c
+++ b/app/test-pmd/cmdline_flow.c
@@ -49,6 +49,7 @@ enum index {
 	PORT_ID,
 	GROUP_ID,
 	PRIORITY_LEVEL,
+	GTP_PSC_PDU_T,
 
 	/* Top-level command. */
 	SET,
@@ -1529,6 +1530,13 @@ static const struct token token_list[] = {
 		.type = "RETURN",
 		.help = "set command may end here",
 	},
+	[GTP_PSC_PDU_T] = {
+		.name = "{GTPU pdu type}",
+		.type = "INTEGER",
+		.help = "gtpu pdu uplink/downlink identifier",
+		.call = parse_int,
+		.comp = comp_none,
+	},
 	/* Common tokens. */
 	[INTEGER] = {
 		.name = "{int}",
@@ -2622,7 +2630,8 @@ static const struct token token_list[] = {
 	[ITEM_GTP_PSC_PDU_T] = {
 		.name = "pdu_t",
 		.help = "PDU type",
-		.next = NEXT(item_gtp_psc, NEXT_ENTRY(UNSIGNED), item_param),
+		.next = NEXT(item_gtp_psc, NEXT_ENTRY(GTP_PSC_PDU_T),
+			     item_param),
 		.args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_gtp_psc,
 					pdu_type)),
 	},
-- 
2.20.1



More information about the dev mailing list