From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E6A90A059F; Fri, 10 Apr 2020 17:14:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 231BE1D579; Fri, 10 Apr 2020 17:13:42 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 0742E1D516 for ; Fri, 10 Apr 2020 17:13:38 +0200 (CEST) IronPort-SDR: cTjjk+aj92ZX0PvHqAuR3PwbVE8pIBq1Wl02qzLahiVfCfwbxnVSYc0MsNFN/bFhgqsexaW6lu 6ARiWVtWjDow== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2020 08:13:38 -0700 IronPort-SDR: HoFjNgNHuFSceq3wKwBVS+KXHFMO1qXBo+yeqScFU9/mzqq7/6wou4uMp2ujqQU8zBV24hG07y 6BGObXlb75ng== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,367,1580803200"; d="scan'208";a="452407771" Received: from npg-dpdk-cvl-jeffguo-01.sh.intel.com ([10.67.111.128]) by fmsmga005.fm.intel.com with ESMTP; 10 Apr 2020 08:13:36 -0700 From: Jeff Guo To: xiaolong.ye@intel.com, qi.z.zhang@intel.com Cc: dev@dpdk.org, jingjing.wu@intel.com, yahui.cao@intel.com, simei.su@intel.com, jia.guo@intel.com Date: Fri, 10 Apr 2020 20:09:44 -0400 Message-Id: <20200411000945.15311-4-jia.guo@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200411000945.15311-1-jia.guo@intel.com> References: <20200318170401.7938-5-jia.guo@intel.com> <20200411000945.15311-1-jia.guo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [dpdk-dev v3 3/4] app/testpmd: support GTP PDU type X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add gtp pdu type configure in the cmdline. Signed-off-by: Jeff Guo --- 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