From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C1797A0524; Mon, 12 Apr 2021 21:24:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B14991412EB; Mon, 12 Apr 2021 21:24:34 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 435581412DD for ; Mon, 12 Apr 2021 21:24:33 +0200 (CEST) IronPort-SDR: nNl6LkKhSrvPvKmA/I0ECdAr3+SzBtQZbgfteipA8Cve96RS1PG5GWRFhadQz79cfNRg8p3KY+ G24YtTO0wlYw== X-IronPort-AV: E=McAfee;i="6200,9189,9952"; a="181782749" X-IronPort-AV: E=Sophos;i="5.82,216,1613462400"; d="scan'208";a="181782749" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2021 12:24:30 -0700 IronPort-SDR: /mcLgHyWiNCc+Hg+2nrIVuTToqW9A89I3PyL6hnKJLW/SbgJqo1uLI0tGZy7o1TI272CHgOxGC ArO+mmt0rODw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,216,1613462400"; d="scan'208";a="600095175" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga005.jf.intel.com with ESMTP; 12 Apr 2021 12:24:30 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Mon, 12 Apr 2021 12:24:29 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Mon, 12 Apr 2021 12:24:29 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2 via Frontend Transport; Mon, 12 Apr 2021 12:24:29 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.109) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Mon, 12 Apr 2021 12:24:29 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RA2KqMjhY5q2QshSnTFUhVBOc3dBRb0gcJ+b58YZckV/CUD5/ciqi97I5wS/4mIo5AlwdV+VHMFgEm+SJoHDlbM57PtgWnaCCBc1PBQC/dI+vHYH6yWYV3XFzYbJ2cgLu9zy4LrWh4GG9mB400EbDgmleyxlNYQA2vEeJ7zRXOW4jwVcwEDLmEltuJv0BPWYlVgd+7NZFlXTh/NzK3lgddAL0y8KkEpY3+RC6PbgyxkAxxxgFyIbsfTPjL103GyH2NQB93ikb1NCVVuB+FMoixy0+W4ALQj9cznWaBVWTlx2qa09VfFyKvMpwRBPW2U1pPp2nqtIEbxorWYaEq4F0A== 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=Y9suhHISBWXw2AdSPCANNCzOdZAzXMOw6KsZaYp9t2M=; b=EZUgGc27pIOsE4cNNqortrreV4+myS7nOU1PD+zxrsxsF9I/wXb37s0vuTmFD0Lg6m4NMfxc3olXXfqw64LHI4OjntHhijy6M174U8QRc3Ur7GRTXSvpGob3K4w1d/0QuCBXhNo0fGP0nct0m4Ig4yWf35xCAaIP/ZAqHlLuULan6ehr+GrQwKEl8HrLH82ggBBSs6ZfVTLT6HJvwBXUIvhWjvskag0VS14cCLThhBrG9hu6c//sLDcUUtuo0Rb2dtqDC3nyk2J10FAdSNzcTCQ/TcA5LUQf/7bePD9y/DbEcpAf3pYcB2V5PgP33rD8hea9rWEEFuRBVzfTIVHatg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y9suhHISBWXw2AdSPCANNCzOdZAzXMOw6KsZaYp9t2M=; b=WZhaHzMilxHqDX2pEXB2lUBlw06jrmet87mCRlqcTP8dNg5+lgtl7hiX1MtGIlCF3w7jPcNWP8Wc2q05eAK6tcKVbL6jrMQmGUr5UCUUrgF7pNGbKCYknGX+zzxCEv6M28PdzucNhWaSDUByPqiL/FZzaWjH/vTfvXf2yvfqVww= Received: from DM6PR11MB2796.namprd11.prod.outlook.com (2603:10b6:5:c8::23) by DM6PR11MB4060.namprd11.prod.outlook.com (2603:10b6:5:196::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.21; Mon, 12 Apr 2021 19:24:28 +0000 Received: from DM6PR11MB2796.namprd11.prod.outlook.com ([fe80::d099:834d:f5ad:39c9]) by DM6PR11MB2796.namprd11.prod.outlook.com ([fe80::d099:834d:f5ad:39c9%3]) with mapi id 15.20.4020.022; Mon, 12 Apr 2021 19:24:28 +0000 From: "Dumitrescu, Cristian" To: Li Zhang , "dekelp@nvidia.com" , "orika@nvidia.com" , "viacheslavo@nvidia.com" , "matan@nvidia.com" , "shahafs@nvidia.com" , "lironh@marvell.com" , "Singh, Jasvinder" CC: "dev@dpdk.org" , "thomas@monjalon.net" , "rasland@nvidia.com" , "roniba@nvidia.com" Thread-Topic: [PATCH v3 3/4] net/softnic: check meter packet mode Thread-Index: AQHXLdqhQLwncNATVkuuUUT2iNwU7qqxRxGA Date: Mon, 12 Apr 2021 19:24:28 +0000 Message-ID: References: <20210408035849.1755493-1-lizh@nvidia.com> <20210410072445.1872769-1-lizh@nvidia.com> <20210410072445.1872769-4-lizh@nvidia.com> In-Reply-To: <20210410072445.1872769-4-lizh@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [109.79.23.215] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b0e0efcb-63b0-4b64-7beb-08d8fde89714 x-ms-traffictypediagnostic: DM6PR11MB4060: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:248; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: YGe8XfEKLlqef4NEs5WFZEWUaAOYO+Gms5KP1iEsTRhb1XS/sV2+cGtsWnNTfsGbUKZHoaUEkFF59CvlBNtzGt1wQ7H11h9XL9IHCgFEICevqUTOdOsK1f93sopcfw6xydgiBPJqbCVEhQT283muZsoxVgeDns4E/ijwwZNCj0/+vcg2g9+GTMHf4ivTrisc08oKWvZciqvMho8uvzy0H1lPSAh6oECFr7Gbp4tjx3WlGI41NwbLSyIY2qc903gtZBpRlpkC9JgHXGjgxg/jyOV1n6w3BsHT5aqiVvC0BlShqZHq3xZOVHynt/Y+xS/iAVXnM4bRowx7/NPRtNUZ2N//riDTGDtxoFslsTzETpBBOhBL1V1kLjdZNORDGWn9rgu9mozfoIydq2ZwwSRF86swnqdUwp1Ltj3MLKd+EH7bQgykEmtw8NWcyBBJwcn2AnHSpAy/lWUmsUkYU8lrPPIM4KfShjKOCQjtQ+SKDFh5TIo20a8ncg/wul50Xxdg9jFzWdtgidHnrxXaxcDH/q4DWEBRYOCSQTFVVYhm+sDY7skaD/Wu8A38PrsUmx2NCmbN5Yq+ho7ALmDRHdUR7cjjpuEuGEMqSYYr073GOg0= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB2796.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(376002)(39860400002)(396003)(136003)(346002)(66446008)(76116006)(4326008)(66946007)(64756008)(54906003)(6636002)(5660300002)(186003)(26005)(66556008)(66476007)(8676002)(83380400001)(9686003)(38100700002)(71200400001)(8936002)(7696005)(52536014)(7416002)(55016002)(6506007)(33656002)(316002)(110136005)(2906002)(478600001)(86362001)(53546011); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?KfAq3xw7wLcjgu27csh2kbb40q3QGJ+WYlgvgoqHflq6A7/Re3cz8ivRJk2T?= =?us-ascii?Q?6x9oI4iGECNfyn8pjNzxkUtxXk8uCBvVgAUb+aTNmCA6ccmVIb6pQH5/+EHp?= =?us-ascii?Q?gXm6vjJyD2Y1gB/bplEIDMI0leo4BObQA4URfEzUT/QPFJ7K82BTnU6X7a+K?= =?us-ascii?Q?WTVFgbSSne+9cemipCCp1UprA3odgfu/mg1WaFTQKvA2jUMQv4HFoHhsRaNu?= =?us-ascii?Q?1tr99YuDUJLbjS26ljj52mG+QjfNiKJ0LzZw6Nr57AqFbp8ZWIp0mY0pD9Sa?= =?us-ascii?Q?kJb+l2ou1sI6FjRkl4qm+sGEyHaXNKRQZRAKUmMs73SV0xFEoJkdEPrtRabF?= =?us-ascii?Q?1FDFaVbLSQyrp3d31fcZKn08KHFYXalDvYFuqWCglp3D7Jn6m439H/6MI534?= =?us-ascii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gTX1ME?= =?us-ascii?Q?GpqjEeMvNS9A5ViZojEfkI1J?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB2796.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0e0efcb-63b0-4b64-7beb-08d8fde89714 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2021 19:24:28.0607 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: S5WIDA7E623ugxRny8nMIhhi04knGaozZ9ge7tOm2ZBRxX+Jx96ru0S0KbNg6DERKBBHN6VCgo5H2fowqQNkff4dTlA4NACoH/hbJHd+p1w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4060 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3 3/4] net/softnic: check meter packet mode X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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: Li Zhang > Sent: Saturday, April 10, 2021 8:25 AM > To: dekelp@nvidia.com; orika@nvidia.com; viacheslavo@nvidia.com; > matan@nvidia.com; shahafs@nvidia.com; Dumitrescu, Cristian > ; lironh@marvell.com; Singh, Jasvinder > > Cc: dev@dpdk.org; thomas@monjalon.net; rasland@nvidia.com; > roniba@nvidia.com > Subject: [PATCH v3 3/4] net/softnic: check meter packet mode >=20 > Currently meter algorithms only supports bytes per second(BPS). > Check packet_mode set to TRUE are rejected. >=20 > Signed-off-by: Li Zhang > Acked-by: Matan Azrad > --- > drivers/net/softnic/rte_eth_softnic_meter.c | 8 ++++++++ > 1 file changed, 8 insertions(+) >=20 > diff --git a/drivers/net/softnic/rte_eth_softnic_meter.c > b/drivers/net/softnic/rte_eth_softnic_meter.c > index 2a05a85cdb..046e629f17 100644 > --- a/drivers/net/softnic/rte_eth_softnic_meter.c > +++ b/drivers/net/softnic/rte_eth_softnic_meter.c > @@ -107,6 +107,14 @@ meter_profile_check(struct rte_eth_dev *dev, > NULL, > "Metering alg not supported"); >=20 > + /* Not support packet mode, just support byte mode. */ > + if (profile->packet_mode) > + return -rte_mtr_error_set(error, > + EINVAL, > + > RTE_MTR_ERROR_TYPE_METER_PROFILE_PACKET_MODE, > + NULL, > + "Meter packet mode not supported"); > + > return 0; > } >=20 > -- > 2.21.0 Acked-by: Cristian Dumitrescu