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 E54ECA0524; Tue, 13 Apr 2021 07:42:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 67B8B160B6C; Tue, 13 Apr 2021 07:42:51 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id ED40F160B6B for ; Tue, 13 Apr 2021 07:42:49 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 13D5a2vD016467; Mon, 12 Apr 2021 22:42:49 -0700 Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2109.outbound.protection.outlook.com [104.47.55.109]) by mx0a-0016f401.pphosted.com with ESMTP id 37vcu9c6tx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Apr 2021 22:42:49 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZnJcoTVR/O72Zhc81Ur9St+ZzpBz42VQk+/uraHmxyHLC5Y95M01yKRERXK5tiy7jO3mWidz+t2LoGBnKXun8KoU91x7D73OHtHExFZo9L4/tJ6mg2eLbdQuXXrHYuP1gnUCIFKhvvtEurvYyQTtWKKAihQG9wZVrqnU1Py6v/jEu8BVSmYBp6HO8yxdyceSH0AyKHl9uJbEUfWPYbktxnc8IqnMRBJvfHOqij1rFwyVCfZGttv0MWfd0TLi6fQzsFljNsWYSzLbrRKM+lOjD8Im0FkR58RYCCsjfXSDchMzTM6ck0GKibizs+dweUCAaXYIqaZpdjYQ1CU9plXF3w== 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=HsFhl9ekO4NgRIvJ2j6tfzlwSy+Bz7LpDqXaw+75u1A=; b=VqV/+yvx130M9VZzHMfXrwxWFsvXNdhwt5dfppgEB7cHY1YRW70NdEmOOdXlqQlN+/QbCbD1nW0Bel9PLA3IGqgZ/+hgHUs5JbYuIpoawPhCG1/GkPS1c1NRsdIEpUShqADV64+QvJbDyoperOExnpdg4LcLTMBxm6hPqABZuPILyZcFGKDRR69zrC2daTmavEyCvOUd1Mcl+qadFa17wZ+IA/34o8/VHYcWVDbFC6fu3r8vBwvqkCn1S5FZ8365y97t2vm2Umf2RfqcZkPmYMaZBFwO+OZUD/Ic3u+RgwH95g2i1lHr6mEDRFXgWiu38QnZ/J/Vd8+bfUsJFfqQwQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HsFhl9ekO4NgRIvJ2j6tfzlwSy+Bz7LpDqXaw+75u1A=; b=ViNBNdwwUBQTbSn+CyKTIFyUc9898xalLY4yoVxh1L/t2X/KqlLLy9Qzdmz1ayyXYJ+61Kch4bRz4SvHum7zyfiyKpBfiMXXm7RJ9SjzUtQ/PXIwcbj+1oofZVsVnJXebGK9SZ9iN9Wpqr4gvZj/eHS26TfimhZjZb1RlaoF0Rs= Received: from DM5PR18MB2214.namprd18.prod.outlook.com (2603:10b6:4:b9::21) by DM5PR18MB1162.namprd18.prod.outlook.com (2603:10b6:3:29::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17; Tue, 13 Apr 2021 05:42:47 +0000 Received: from DM5PR18MB2214.namprd18.prod.outlook.com ([fe80::b9bf:c3d8:14a0:e924]) by DM5PR18MB2214.namprd18.prod.outlook.com ([fe80::b9bf:c3d8:14a0:e924%7]) with mapi id 15.20.4020.018; Tue, 13 Apr 2021 05:42:47 +0000 From: Liron Himi To: Li Zhang , "dekelp@nvidia.com" , "orika@nvidia.com" , "viacheslavo@nvidia.com" , "matan@nvidia.com" , "shahafs@nvidia.com" , "cristian.dumitrescu@intel.com" , Jerin Jacob Kollanukkaran , "ferruh.yigit@intel.com" CC: "dev@dpdk.org" , "thomas@monjalon.net" , "rasland@nvidia.com" , "roniba@nvidia.com" , Liron Himi Thread-Topic: [EXT] [PATCH v4 4/4] net/mvpp2: check meter packet mode Thread-Index: AQHXMBg83eXdcistaUmhD0rvhSB6xaqx70EQ Date: Tue, 13 Apr 2021 05:42:47 +0000 Message-ID: References: <20210331085405.1445546-1-lizh@nvidia.com> <20210413035046.28578-1-lizh@nvidia.com> <20210413035046.28578-5-lizh@nvidia.com> In-Reply-To: <20210413035046.28578-5-lizh@nvidia.com> Accept-Language: he-IL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=marvell.com; x-originating-ip: [109.186.236.160] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6d598261-ff28-420d-af28-08d8fe3ef835 x-ms-traffictypediagnostic: DM5PR18MB1162: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:741; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: nzdFJRP9UURaE3+TVkagY6pu92rEqrSXTHORGzeOj3Ts5JbSO5Y1fUghtEx6vEzFcy5ksldx82XTcCBOkOs5Y0M3hybS/cdYR8D9nK7ic31RCYwi4hY43ZiR2grHBg24+NpnN8AcXAne/fBujCRRROSNvvMNiVEy0hB4VypMlYEPkD7G0T0q/t6LsjSpdgpkkdV+az/dMUILjPRJRmumEm/TVK2YfvIwMgDLBsRAlgp1yq0NnMwr0mfwQE90po3JvMLJxGqw0IoNi3RRey3ePxq2GEGSTgjSXG0/t1U+07xBzXcyaZ7nexSnJceTWLoW/6DnvK9DmkJuZ0bfiF4Q3KgISxw1sV5eQRVonAasGCTLWpG+myyppKro4j98ZwTRKrhiShOwGnLNupHbUIH4Pf1l4uyo7nE0sU0Jrt6ee6KucvUAY2IQZfiSDI4p27THUSqNXC/dF6DplcKgfut1qh4Lm3IxP+cVBslSfHng8jxTUWN9zFFq9oyKuAUKB474UNP4l83QhIc6lhAIGE7xuiT4pTKvA3PdjiijLfFZvvlG7bnngNo/FH7tnA77064KiKVX1gaYOxquPjj07kaQAOGvtFWnO3MqD9k4t4+izCA= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR18MB2214.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(39860400002)(376002)(346002)(136003)(396003)(66556008)(6506007)(66446008)(53546011)(64756008)(66476007)(5660300002)(478600001)(7416002)(52536014)(8676002)(54906003)(110136005)(316002)(33656002)(4326008)(2906002)(107886003)(86362001)(9686003)(83380400001)(7696005)(71200400001)(76116006)(26005)(55016002)(8936002)(186003)(38100700002)(66946007)(122000001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?k5pQoVMj1/RmLqvlgRLroU1oDngwfHgUOyJcPNueO9veNuc2/LjcmXmkEauA?= =?us-ascii?Q?l8rfQndH9lPC0Z2/Wxk/Z9mfERC7O/gBifrd1RGsffovWRRUUbaNb5wCF0/l?= =?us-ascii?Q?buYwV7iIOKLfYznD0jubVqNGmlCrywibCHM57PTp0qSrZHEidAXCnmLONioM?= =?us-ascii?Q?6in5rbUjBKRzEe//5LT2sDwcaAEwDE/ymXC8tRgZoRIrEf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awcnQvN3b1/bqIn5ID+SHLoQk9tXPfL8A8D/vJ?= =?us-ascii?Q?XgQFfYTDYkZiGatCmqAsc4NERGa5PXvhz6VdXL+bPjdTj5xdQ0iNWlDbwl1h?= =?us-ascii?Q?1hlLPUF+vgOGKUennzS/aMkEDquSDRSBMFBW7aTh7vq5oSgYv+BY0ywWItDY?= =?us-ascii?Q?f8jEqWaT1uYee3+argybJoCNOneywCIt91nxbG72SSRE2ZA4imWSWQa/7sVN?= =?us-ascii?Q?FY2rQKa2/4VvImlIXVp9CNz9?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM5PR18MB2214.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6d598261-ff28-420d-af28-08d8fe3ef835 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Apr 2021 05:42:47.7571 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: eBpJlcRW/Q+9h1XdsA6y7zsEw7TD07A2dbWU7pivU8VuwVCrJZqXvxpCXDIco/UebyTAAA28b0l64Pd9V9ovrQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR18MB1162 X-Proofpoint-GUID: TPNPspIOYvX5v4EmdFAeFhXZXQyQ_U59 X-Proofpoint-ORIG-GUID: TPNPspIOYvX5v4EmdFAeFhXZXQyQ_U59 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-04-13_01:2021-04-12, 2021-04-13 signatures=0 Subject: Re: [dpdk-dev] [EXT] [PATCH v4 4/4] net/mvpp2: 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" Acked-by: Liron Himi -----Original Message----- From: Li Zhang =20 Sent: Tuesday, 13 April 2021 06:51 To: dekelp@nvidia.com; orika@nvidia.com; viacheslavo@nvidia.com; matan@nvid= ia.com; shahafs@nvidia.com; cristian.dumitrescu@intel.com; Liron Himi ; Jerin Jacob Kollanukkaran ; ferruh.yig= it@intel.com Cc: dev@dpdk.org; thomas@monjalon.net; rasland@nvidia.com; roniba@nvidia.co= m Subject: [EXT] [PATCH v4 4/4] net/mvpp2: check meter packet mode External Email ---------------------------------------------------------------------- Currently meter algorithms only supports bytes per second(BPS). Check packet_mode set to TRUE are rejected. Signed-off-by: Li Zhang Acked-by: Matan Azrad --- drivers/net/mvpp2/mrvl_mtr.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/mvpp2/mrvl_mtr.c b/drivers/net/mvpp2/mrvl_mtr.c in= dex 2fa5cb43ad..c07ac95ddc 100644 --- a/drivers/net/mvpp2/mrvl_mtr.c +++ b/drivers/net/mvpp2/mrvl_mtr.c @@ -88,6 +88,12 @@ mrvl_meter_profile_add(struct rte_eth_dev *dev, uint32_t= meter_profile_id, NULL, "Only srTCM RFC 2697 is supported\n"); =20 + if (profile->packet_mode) + return -rte_mtr_error_set(error, EINVAL, + RTE_MTR_ERROR_TYPE_METER_PROFILE_PACKET_MODE, + NULL, + "Packet mode is not supported\n"); + prof =3D mrvl_mtr_profile_from_id(priv, meter_profile_id); if (prof) return -rte_mtr_error_set(error, EEXIST, -- 2.27.0