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 0EDC8A058A; Wed, 25 Mar 2020 09:27:36 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CF1BC374C; Wed, 25 Mar 2020 09:27:35 +0100 (CET) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60047.outbound.protection.outlook.com [40.107.6.47]) by dpdk.org (Postfix) with ESMTP id 4801F2C15 for ; Wed, 25 Mar 2020 09:27:34 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lXbXeWAhTlcIzeTmfLbW5rgVnKCophuquNllFbg6EeR2+L9zD8Pn5nBXASxgsm0cUckvovKgfMCldXGGXMDokEgBDeAIQN3h1mh3bV5Bke7e12s0Fl/RHVrlsqPMlBB18KkqTymUpOgcnOhQdrniBiO/uKKIIN/+ausjfvHUOGHoGINpBTPuglrAZm2RDPuCdUWT2REtzRuApY2fvJq/V+3t9mhaqI2lfPbfUJLh6f38jSDWjXwpoqWCK/BluWF1l692uJaqcq0GZqFUnOk1uAfX/pWn+zY+pFUhRcKhx+LkpC0/bD6vyj42cErc1xvklqA60kvKf//AvZABalkAgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hywNv4DzWg+SSW43TDF1YTBQ8fblKIqtSOsULrMyynk=; b=m8bFJ/cWlBRq0oLPObpcPO/jTQYdNaIPMX+gA8CiYvrULA1V/gtdjbt5CysI6UrFikydg1xmzvwvv1TcpWMjJP/T6V6JrXlMFTV/NyaACVTF/5NF04UJyC/R4MXGMbYCcT6XwrXNo1TeXX9ZnjnW95EDGoCX4xi9KPcrUKPryepuil23bAu/PHjJmX5arKvjtJ8sHSAEdorpFq7dWXpy1dZkSJN2LJQg+al9LducH/CzlbFEy0ivsVj+c9cHzvpUZjTwDJK+4zN/8EZ7Wp0RWEfP0FCF3C3KgKGxZ3DhL5bHzS1TSd7+kwvyMMqf/e19g2jLZZjHaZtJNzGc+aoJWQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hywNv4DzWg+SSW43TDF1YTBQ8fblKIqtSOsULrMyynk=; b=ZdDpMqcMF2qu9ffEs2h5sP3Yb+0qrE3UrkbiI0sa7R3oNd6MP/wX5HgcPzWMDAYDf9dAURU3K6r1vNPNlzv7/xvjEPUcnUs167fvuOCXvIdC+U1KpaudwPtG+y5QFgbJE+MEFjoJ6DAg8oMfMy6kW7upVQQTiPK/Um9HZSPts/Q= Received: from AM6PR05MB5176.eurprd05.prod.outlook.com (20.177.196.158) by AM6PR05MB5719.eurprd05.prod.outlook.com (20.178.94.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.20; Wed, 25 Mar 2020 08:27:32 +0000 Received: from AM6PR05MB5176.eurprd05.prod.outlook.com ([fe80::80e9:7eb9:e770:941d]) by AM6PR05MB5176.eurprd05.prod.outlook.com ([fe80::80e9:7eb9:e770:941d%7]) with mapi id 15.20.2835.023; Wed, 25 Mar 2020 08:27:32 +0000 From: Ori Kam To: Dekel Peled , "wenzhuo.lu@intel.com" , "jingjing.wu@intel.com" , "bernard.iremonger@intel.com" CC: Matan Azrad , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2] app/testpmd: enhance GTP support Thread-Index: AQHWAn0q68dQnrDzCU+9x4/COTE4pqhY+WHg Date: Wed, 25 Mar 2020 08:27:32 +0000 Message-ID: References: <239bc0ae9191ddc12fec65742949710d13185b85.1584346077.git.dekelp@mellanox.com> <849037cfb86ddbce85675606f8a81090044e97e1.1585123614.git.dekelp@mellanox.com> In-Reply-To: <849037cfb86ddbce85675606f8a81090044e97e1.1585123614.git.dekelp@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=orika@mellanox.com; x-originating-ip: [185.175.35.255] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 3b0feabc-8114-402e-59f9-08d7d0965d7f x-ms-traffictypediagnostic: AM6PR05MB5719:|AM6PR05MB5719: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1227; x-forefront-prvs: 0353563E2B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(39860400002)(346002)(376002)(136003)(396003)(316002)(478600001)(5660300002)(4326008)(7696005)(53546011)(2906002)(6506007)(66556008)(66446008)(71200400001)(66946007)(9686003)(66476007)(64756008)(8936002)(76116006)(33656002)(52536014)(55016002)(8676002)(81166006)(81156014)(110136005)(86362001)(186003)(54906003)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR05MB5719; H:AM6PR05MB5176.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: X48/WPAF2Rqb+uLfaFI2opTxAAUyByyc3PxPXUnjhidlBep7KP02aG2hyhRXqOBGzjEfaNthHYiI01poqNXZ1QtbMFooTqm6+NvFsna8nQTc3swklW7VXAVZlSfxw/IK6hy4oHtM9uCGaSTVo3iBf6tEWQ+dwhZRnBMAKqNrx0UNk03RK0RxAbsBJH33sTQM33o3P/zqtWTrKso9fJ3KZH0rLcYnFTqe77NOIJK9bDTdOr+G1FncQONkgO9+VIPnixUqDDOr0EwnW2Ztfs6yd3A7PIE1y0E9ZovNYKF+0ppjAcbJ3+mrgkc0xlJCmK29HR7z46wix2dDFIrwTcO1TH5o+Fvs0clQ2N2oWblv2lDS+Fg2/ktc4gueAd8z0i+a+lKdMmv3ax2GJD3c5PwVaQlyq3HA4foji+1M9dEAjeda0HzVMQEaXYiHtBxquvkN x-ms-exchange-antispam-messagedata: UiFeanNzGLXW/R+XTEVDCIDA4rzANMd61j+BLbOG8ClciBCtWkoaoA63EarI8SeLifsX9/X/sZ6BMCXPW5LmQChnlIkVR1KxQcYx3pozgxtkei9L/5bviHpyOoDMLXSmoLq4k5pf5oe4tLdayHHw6w== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b0feabc-8114-402e-59f9-08d7d0965d7f X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Mar 2020 08:27:32.7114 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 5sDE/eMue5rxviDtHaWr2KVgBoJPbR8pyPTyyTGssdfqgaGnaZHyZ05tKirT4Jvzi2uGhum9LyA6xlWOohNf+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB5719 Subject: Re: [dpdk-dev] [PATCH v2] app/testpmd: enhance GTP support 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" > -----Original Message----- > From: dev On Behalf Of Dekel Peled > Sent: Wednesday, March 25, 2020 10:13 AM > To: Ori Kam ; wenzhuo.lu@intel.com; > jingjing.wu@intel.com; bernard.iremonger@intel.com > Cc: Matan Azrad ; dev@dpdk.org > Subject: [dpdk-dev] [PATCH v2] app/testpmd: enhance GTP support >=20 > This patch adds CLI option to enter the v_pt_rsv_flags value for GTP > flow pattern item. > It also adds GTP as valid item in raw_encap and raw_decap setting. >=20 > Signed-off-by: Dekel Peled > --- > v2: remove redundant hton flag. > --- > app/test-pmd/cmdline_flow.c | 15 +++++++++++++-- > 1 file changed, 13 insertions(+), 2 deletions(-) >=20 > diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c > index a781545..4877ac6 100644 > --- a/app/test-pmd/cmdline_flow.c > +++ b/app/test-pmd/cmdline_flow.c > @@ -170,6 +170,7 @@ enum index { > ITEM_FUZZY, > ITEM_FUZZY_THRESH, > ITEM_GTP, > + ITEM_GTP_FLAGS, > ITEM_GTP_MSG_TYPE, > ITEM_GTP_TEID, > ITEM_GTPC, > @@ -938,6 +939,7 @@ struct parse_action_priv { > }; >=20 > static const enum index item_gtp[] =3D { > + ITEM_GTP_FLAGS, > ITEM_GTP_MSG_TYPE, > ITEM_GTP_TEID, > ITEM_NEXT, > @@ -2347,12 +2349,18 @@ static int comp_set_raw_index(struct context *, > const struct token *, > .next =3D NEXT(item_gtp), > .call =3D parse_vc, > }, > + [ITEM_GTP_FLAGS] =3D { > + .name =3D "v_pt_rsv_flags", > + .help =3D "GTP flags", > + .next =3D NEXT(item_gtp, NEXT_ENTRY(UNSIGNED), > item_param), > + .args =3D ARGS(ARGS_ENTRY(struct rte_flow_item_gtp, > + v_pt_rsv_flags)), > + }, > [ITEM_GTP_MSG_TYPE] =3D { > .name =3D "msg_type", > .help =3D "GTP message type", > .next =3D NEXT(item_gtp, NEXT_ENTRY(UNSIGNED), > item_param), > - .args =3D ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_gtp, > - msg_type)), > + .args =3D ARGS(ARGS_ENTRY(struct rte_flow_item_gtp, > msg_type)), > }, > [ITEM_GTP_TEID] =3D { > .name =3D "teid", > @@ -6604,6 +6612,9 @@ static int comp_set_raw_index(struct context *, > const struct token *, > size =3D sizeof(struct rte_flow_item_ah); > proto =3D 0x33; > break; > + case RTE_FLOW_ITEM_TYPE_GTP: > + size =3D sizeof(struct rte_flow_item_gtp); > + break; > case RTE_FLOW_ITEM_TYPE_PFCP: > size =3D sizeof(struct rte_flow_item_pfcp); > break; > -- > 1.8.3.1 Acked-by: Ori Kam Thanks, Ori