From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 7DD211F1A for ; Thu, 11 Jan 2018 19:33:35 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jan 2018 10:33:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,345,1511856000"; d="scan'208";a="9414185" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by fmsmga002.fm.intel.com with ESMTP; 11 Jan 2018 10:33:33 -0800 Received: from irsmsx156.ger.corp.intel.com (10.108.20.68) by IRSMSX101.ger.corp.intel.com (163.33.3.153) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 11 Jan 2018 18:33:32 +0000 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.167]) by IRSMSX156.ger.corp.intel.com ([169.254.3.33]) with mapi id 14.03.0319.002; Thu, 11 Jan 2018 18:33:32 +0000 From: "Dumitrescu, Cristian" To: Tomasz Duszynski , "dev@dpdk.org" CC: "Lu, Wenzhuo" , "Wu, Jingjing" , "Singh, Jasvinder" Thread-Topic: [dpdk-dev] [PATCH] app/testpmd: add meter to the actions table Thread-Index: AQHTiuMhmqkhw+UJ5EKExsx71gnARKNu/2tQ Date: Thu, 11 Jan 2018 18:33:32 +0000 Message-ID: <3EB4FA525960D640B5BDFFD6A3D891267BAFBFA4@IRSMSX108.ger.corp.intel.com> References: <1515678563-13424-1-git-send-email-tdu@semihalf.com> In-Reply-To: <1515678563-13424-1-git-send-email-tdu@semihalf.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] app/testpmd: add meter to the actions table 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: , X-List-Received-Date: Thu, 11 Jan 2018 18:33:35 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Tomasz Duszynski > Sent: Thursday, January 11, 2018 1:49 PM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; Wu, Jingjing > ; Tomasz Duszynski > Subject: [dpdk-dev] [PATCH] app/testpmd: add meter to the actions table >=20 > Since METER action is supported by the testpmd application > suitable entry should exist in flow actions information table. >=20 > Without that testpmd will return error on adding a new flow to > the list of flows attached to a given port. >=20 > Signed-off-by: Tomasz Duszynski > --- > app/test-pmd/config.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c > index 0a84481..4ad19fb 100644 > --- a/app/test-pmd/config.c > +++ b/app/test-pmd/config.c > @@ -1038,6 +1038,7 @@ static const struct { > MK_FLOW_ACTION(RSS, sizeof(struct rte_flow_action_rss)), /* > +queue[] */ > MK_FLOW_ACTION(PF, 0), > MK_FLOW_ACTION(VF, sizeof(struct rte_flow_action_vf)), > + MK_FLOW_ACTION(METER, sizeof(struct rte_flow_action_meter)), > }; >=20 > /** Compute storage space needed by action configuration. */ > -- > 2.7.4 Adding Jasvinder to this thread.