Message ID | 20210401061618.1478961-1-lizh@nvidia.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1D360A034F; Thu, 1 Apr 2021 08:16:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3D84014101F; Thu, 1 Apr 2021 08:16:33 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by mails.dpdk.org (Postfix) with ESMTP id 3046A14101A for <dev@dpdk.org>; Thu, 1 Apr 2021 08:16:30 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from lizh@nvidia.com) with SMTP; 1 Apr 2021 09:16:24 +0300 Received: from nvidia.com (c-235-17-1-009.mtl.labs.mlnx [10.235.17.9]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 1316GOQh022324; Thu, 1 Apr 2021 09:16:24 +0300 From: Li Zhang <lizh@nvidia.com> To: dekelp@nvidia.com, orika@nvidia.com, viacheslavo@nvidia.com, matan@nvidia.com, shahafs@nvidia.com, cristian.dumitrescu@intel.com, lironh@marvell.com Cc: dev@dpdk.org, thomas@monjalon.net, rasland@nvidia.com, roniba@nvidia.com Date: Thu, 1 Apr 2021 09:16:15 +0300 Message-Id: <20210401061618.1478961-1-lizh@nvidia.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 0/2] Check meter packet mode in PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
Check meter packet mode in PMD
|
|
Message
Li Zhang
April 1, 2021, 6:16 a.m. UTC
Currently meter algorithms only supports rate is bytes per second(BPS). Add packet_mode flag in meter profile parameters data structure in RTE. Add the necessary checks to the existing drivers implementing the rte_mtr API to makes sure that profiles with packet_mode set to TRUE are rejected. Depends-on: series=16002 ("Support PPS(packet per second) on meter") https://patchwork.dpdk.org/project/dpdk/list/?series=16002 Li Zhang (2): net/softnic: check meter packet mode net/mvpp2: check meter packet mode drivers/net/mvpp2/mrvl_mtr.c | 6 ++++++ drivers/net/softnic/rte_eth_softnic_meter.c | 8 ++++++++ 2 files changed, 14 insertions(+)
Comments
01/04/2021 08:16, Li Zhang: > Currently meter algorithms only supports rate is bytes per second(BPS). > Add packet_mode flag in meter profile parameters data structure in RTE. What means RTE? I see no flag added in these patches. > Add the necessary checks to the existing drivers implementing > the rte_mtr API to makes sure that profiles with > packet_mode set to TRUE are rejected. > > Depends-on: series=16002 ("Support PPS(packet per second) on meter") > https://patchwork.dpdk.org/project/dpdk/list/?series=16002 It seems these patches should be part of the above patchset. > Li Zhang (2): > net/softnic: check meter packet mode > net/mvpp2: check meter packet mode
Hi Thomas, > -----Original Message----- > From: Thomas Monjalon <thomas@monjalon.net> > Sent: Thursday, April 1, 2021 2:31 PM > To: Li Zhang <lizh@nvidia.com> > Cc: Ori Kam <orika@nvidia.com>; Slava Ovsiienko <viacheslavo@nvidia.com>; > Matan Azrad <matan@nvidia.com>; cristian.dumitrescu@intel.com; > lironh@marvell.com; dev@dpdk.org; Raslan Darawsheh > <rasland@nvidia.com>; Roni Bar Yanai <roniba@nvidia.com> > Subject: Re: [PATCH 0/2] Check meter packet mode in PMD > > External email: Use caution opening links or attachments > > > 01/04/2021 08:16, Li Zhang: > > Currently meter algorithms only supports rate is bytes per second(BPS). > > Add packet_mode flag in meter profile parameters data structure in RTE. > > What means RTE? > I see no flag added in these patches. It is RTE API, which added by another patch as below: Depends-on: series=16002 ("Support PPS(packet per second) on meter") https://patchwork.dpdk.org/project/dpdk/patch/20210331085405.1445546-2-lizh@nvidia.com/ > > Add the necessary checks to the existing drivers implementing the > > rte_mtr API to makes sure that profiles with packet_mode set to TRUE > > are rejected. > > > > Depends-on: series=16002 ("Support PPS(packet per second) on meter") > > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatc > > > hwork.dpdk.org%2Fproject%2Fdpdk%2Flist%2F%3Fseries%3D16002&dat > a=04 > > %7C01%7Clizh%40nvidia.com%7C6fc22a58772641cbf72608d8f4d7bf75%7C4 > 3083d1 > > > 5727340c1b7db39efd9ccc17a%7C0%7C0%7C637528554762610316%7CUnkno > wn%7CTWF > > > pbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVC > I6M > > > n0%3D%7C1000&sdata=VZ88lQoAZK3z7MODRycvja4YvpEcjC4apoZZy4p1 > ZP4%3D& > > amp;reserved=0 > > It seems these patches should be part of the above patchset. > > > Li Zhang (2): > > net/softnic: check meter packet mode > > net/mvpp2: check meter packet mode > >
01/04/2021 08:52, Li Zhang: > From: Thomas Monjalon <thomas@monjalon.net> > > 01/04/2021 08:16, Li Zhang: > > > Currently meter algorithms only supports rate is bytes per second(BPS). > > > Add packet_mode flag in meter profile parameters data structure in RTE. > > > > What means RTE? > > I see no flag added in these patches. > > It is RTE API, which added by another patch as below: > Depends-on: series=16002 ("Support PPS(packet per second) on meter") > https://patchwork.dpdk.org/project/dpdk/patch/20210331085405.1445546-2-lizh@nvidia.com/ Please do not say RTE API, it is meaningless. Better to give the exact name of the structure, or at least the name of the library. Also your sentence means this patchset is adding a flag but it is not. It's very confusing. > > > Add the necessary checks to the existing drivers implementing the > > > rte_mtr API to makes sure that profiles with packet_mode set to TRUE > > > are rejected. > > > > > > Depends-on: series=16002 ("Support PPS(packet per second) on meter") > > > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatc > > > > > hwork.dpdk.org%2Fproject%2Fdpdk%2Flist%2F%3Fseries%3D16002&dat > > a=04 > > > %7C01%7Clizh%40nvidia.com%7C6fc22a58772641cbf72608d8f4d7bf75%7C4 > > 3083d1 > > > > > 5727340c1b7db39efd9ccc17a%7C0%7C0%7C637528554762610316%7CUnkno > > wn%7CTWF > > > > > pbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVC > > I6M > > > > > n0%3D%7C1000&sdata=VZ88lQoAZK3z7MODRycvja4YvpEcjC4apoZZy4p1 > > ZP4%3D& > > > amp;reserved=0 > > > > It seems these patches should be part of the above patchset. > > > > > Li Zhang (2): > > > net/softnic: check meter packet mode > > > net/mvpp2: check meter packet mode
> -----Original Message----- > From: Thomas Monjalon <thomas@monjalon.net> > Sent: Thursday, April 1, 2021 3:05 PM > To: Li Zhang <lizh@nvidia.com> > Cc: Ori Kam <orika@nvidia.com>; Slava Ovsiienko <viacheslavo@nvidia.com>; > Matan Azrad <matan@nvidia.com>; cristian.dumitrescu@intel.com; > lironh@marvell.com; dev@dpdk.org; Raslan Darawsheh > <rasland@nvidia.com>; Roni Bar Yanai <roniba@nvidia.com> > Subject: Re: [PATCH 0/2] Check meter packet mode in PMD > > External email: Use caution opening links or attachments > > > 01/04/2021 08:52, Li Zhang: > > From: Thomas Monjalon <thomas@monjalon.net> > > > 01/04/2021 08:16, Li Zhang: > > > > Currently meter algorithms only supports rate is bytes per second(BPS). > > > > Add packet_mode flag in meter profile parameters data structure in RTE. > > > > > > What means RTE? > > > I see no flag added in these patches. > > > > It is RTE API, which added by another patch as below: > > Depends-on: series=16002 ("Support PPS(packet per second) on meter") > > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatc > > hwork.dpdk.org%2Fproject%2Fdpdk%2Fpatch%2F20210331085405.1445546- > 2-liz > > > h%40nvidia.com%2F&data=04%7C01%7Clizh%40nvidia.com%7Cee7b712 > 9413a4 > > > 361efed08d8f4dc74d2%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0% > 7C63752 > > > 8574977185064%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJ > QIjoiV2lu > > > MzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=mtOtA82sfVNg > gKbNr6 > > 2qPbgZymCHCSN9p2JB01LUDXc%3D&reserved=0 > > Please do not say RTE API, it is meaningless. > Better to give the exact name of the structure, or at least the name of the > library. > > Also your sentence means this patchset is adding a flag but it is not. > It's very confusing. > Thanks, I will change it in V2 patch. > > > > Add the necessary checks to the existing drivers implementing the > > > > rte_mtr API to makes sure that profiles with packet_mode set to > > > > TRUE are rejected. > > > > > > > > Depends-on: series=16002 ("Support PPS(packet per second) on > > > > meter") > > > > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2F > > > > patc > > > > > > > > hwork.dpdk.org%2Fproject%2Fdpdk%2Flist%2F%3Fseries%3D16002&dat > > > a=04 > > > > %7C01%7Clizh%40nvidia.com%7C6fc22a58772641cbf72608d8f4d7bf75% > 7C4 > > > 3083d1 > > > > > > > > 5727340c1b7db39efd9ccc17a%7C0%7C0%7C637528554762610316%7CUnkno > > > wn%7CTWF > > > > > > > > pbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVC > > > I6M > > > > > > > > n0%3D%7C1000&sdata=VZ88lQoAZK3z7MODRycvja4YvpEcjC4apoZZy4p1 > > > ZP4%3D& > > > > amp;reserved=0 > > > > > > It seems these patches should be part of the above patchset. > > > > > > > Li Zhang (2): > > > > net/softnic: check meter packet mode > > > > net/mvpp2: check meter packet mode > >
01/04/2021 09:37, Li Zhang: > Thanks, I will change it in V2 patch. Not sure you should do a v2. I think this patchset is needed only because of your other patchset. So it should be integrated with the other one. Am I missing something? > > > > > Depends-on: series=16002 ("Support PPS(packet per second) on > > > > > meter") > > > > > > > > It seems these patches should be part of the above patchset. > > > > > > > > > Li Zhang (2): > > > > > net/softnic: check meter packet mode > > > > > net/mvpp2: check meter packet mode
> -----Original Message----- > From: Thomas Monjalon <thomas@monjalon.net> > Sent: Thursday, April 1, 2021 3:45 PM > To: Li Zhang <lizh@nvidia.com> > Cc: Ori Kam <orika@nvidia.com>; Slava Ovsiienko <viacheslavo@nvidia.com>; > Matan Azrad <matan@nvidia.com>; cristian.dumitrescu@intel.com; > lironh@marvell.com; dev@dpdk.org; Raslan Darawsheh > <rasland@nvidia.com>; Roni Bar Yanai <roniba@nvidia.com> > Subject: Re: [PATCH 0/2] Check meter packet mode in PMD > > External email: Use caution opening links or attachments > > > 01/04/2021 09:37, Li Zhang: > > Thanks, I will change it in V2 patch. > > Not sure you should do a v2. > I think this patchset is needed only because of your other patchset. > So it should be integrated with the other one. > Am I missing something? > OK, I will not send V2 for it only. I will add this cover-letter change when other patchset need be fixed for other comments. > > > > > > Depends-on: series=16002 ("Support PPS(packet per second) on > > > > > > meter") > > > > > > > > > > It seems these patches should be part of the above patchset. > > > > > > > > > > > Li Zhang (2): > > > > > > net/softnic: check meter packet mode > > > > > > net/mvpp2: check meter packet mode > >