Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4604849pxb; Tue, 22 Feb 2022 02:22:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzGJ61Es2URgnvSUsGpKzbv2ujlpdpGtS+YxFO+Ra0F6bBx940+2snQAT67ElJf4w6IuAhp X-Received: by 2002:a17:907:234a:b0:6ce:a6d4:1074 with SMTP id we10-20020a170907234a00b006cea6d41074mr19311154ejb.24.1645525320106; Tue, 22 Feb 2022 02:22:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1645525320; cv=pass; d=google.com; s=arc-20160816; b=p8rkjiVzJquAYnZi8fhYL4rEpuYUuKCFAgNTe1CWEjdpYturl8VNOvrvBZB8WcKzPL z4EJEXfQarbwk6tAzqsivvvh29d70B7P61WbqNS+t6OV6npKXWmvPp9I3kcQsIeMNdof QkPXj39sv36NtNt6Hsn1iOD7jkPw+Xn0yYRflfOPmEIXg5x0rmKbAUcAMpi9v8B51lLf TbqkShjk7YeIxL0NjmossPetfSebsIg8GxOwntLW9mgK2/lde8JG4heWy+Gmpmu8Lyuk SOSoH4RClxIKRo+ZI9LMPa9YThYgBYiiCpAxEeDzfqGHrhiKURZYEW/IuPUwWW1z9UVm E7uQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:dkim-signature; bh=7qHNF4oidD9b3o+iTj/2kSS1vHervG20f1/BBKwECy4=; b=OFxpLn6iLTm0yWQOS9JqEWA6y0+vFozPv7v/Rv+yWHzEcbJHhdnyPwQghz6mUYleBG KT6ds+4PfYmUTpNyWcpwv9xl9vq3nxVkzbnQ1/4NRWQYPliO/voaDQ8HwETVpu3LHbJ9 GnQlBzFm4/bwldG35BCLOrgFghNZnefJI8hyOSt2qEUwNn9UD/EJ2iTFXsUki3756oze 0rdef+ewDu9rbLyFO4xUmLgy4K9TgjVM+V5c7SwJ8U6uTUCp+kUwLaGrkTBIsWg+m1qp 6C38FAybtwyk0fhR2gHU073Ef+zwtbAc5im7t+be0l460NjqKa6y1AKKbWK1qujT5Ym/ y1lw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=SZpRD6QD; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cz5si12797845edb.15.2022.02.22.02.21.37; Tue, 22 Feb 2022 02:22:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=SZpRD6QD; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230517AbiBVKKj (ORCPT + 99 others); Tue, 22 Feb 2022 05:10:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230414AbiBVKKX (ORCPT ); Tue, 22 Feb 2022 05:10:23 -0500 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2087.outbound.protection.outlook.com [40.107.21.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F14D6128654; Tue, 22 Feb 2022 02:09:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bTFjvQU5ENdzgfb6zlhxByF+OK687WNCsYBQ0e/jrIFUVoiShOdG2+H2ownOM5BD9DiNTQkRU7X1Ik/CNUOZAkQ1Svi6jCLt8FLUO5bmwsxudJYw6SF7OSNbe9xTwKsNXta1uwS0Tk1qD50pLpur4FtqvAV2OQGCPU7nuNpzizFFDgKMyEHtlW87hkz96c/JjGIZEEQN/kxs9X4tW+Li7z8AW0PvbmgDGaU2bZYdzZYrrsHOfoGfjvz77JBLZkkKZEHySEWijMJ+no7YvlhfJFi6sAwGm/TsGCEb4W172xkZ+w/YEQIhFlM796RcDlnu7yPMPWIeGD67pYOL9fKmmA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7qHNF4oidD9b3o+iTj/2kSS1vHervG20f1/BBKwECy4=; b=dSZXjMpCPErycovVxpM3E4AOAuFqgDdWitVZHu9Oqo7XYuvThv9zB51k3FJAEmK7BBnUji7x+LX4Na8KkRFFU7OV8Uwf4HHNPrPKcJ5t8P8inCaqeGBlqTKI7u8YY7TAnoaVHryYbGZXrQXrhonvfUF+12O0bwyIGvSyWov8kNnhK2cvC08ySlq5WV6UjgW+d0fhDgCDV85AcOnSPkhR8v64MlAYm+An/3eVMhvBh25SdyUQE/pAPbJ69qIgXdtwJXv1ix+Fiq6ISI2jm2N6/cZtSeobfbJDO0YygoivWU2l701aoJqj38jyQq3Irk+x4Hle3BntNNQmN4TxRingAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7qHNF4oidD9b3o+iTj/2kSS1vHervG20f1/BBKwECy4=; b=SZpRD6QDDj5uzkwDE9sNwT6t1fdalEBCRlxLjADU6ZqvW30U6XqAnDBFlh6YUQP1D0Gd8ykH5r5Vi8/B/fw1s/Jh2y9WXjMw8YIKBfPMSrqGJXcSCg6pdIZbAY70GjKBVpg6rBeKlL7rKWQ0JFzOYqqTumwomHy7shzbUBfSfUY= Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by AM7PR04MB6981.eurprd04.prod.outlook.com (2603:10a6:20b:103::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.27; Tue, 22 Feb 2022 10:09:31 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::95cf:8c40:b887:a7b9]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::95cf:8c40:b887:a7b9%4]) with mapi id 15.20.4951.019; Tue, 22 Feb 2022 10:09:31 +0000 From: Vladimir Oltean To: Jianbo Liu CC: "olteanv@gmail.com" , "andrew@lunn.ch" , Claudiu Manoil , "vivien.didelot@gmail.com" , Petr Machata , "jhs@mojatatu.com" , "oss-drivers@corigine.com" , "hkelam@marvell.com" , "davem@davemloft.net" , "leon@kernel.org" , "peng.zhang@corigine.com" , "louis.peens@netronome.com" , "linux-kernel@vger.kernel.org" , "alexandre.belloni@bootlin.com" , "linux-rdma@vger.kernel.org" , "UNGLinuxDriver@microchip.com" , "rajur@chelsio.com" , Ido Schimmel , "simon.horman@corigine.com" , "sbhatta@marvell.com" , "xiyou.wangcong@gmail.com" , Roi Dayan , "kuba@kernel.org" , "baowen.zheng@corigine.com" , "jiri@resnulli.us" , Saeed Mahameed , "sgoutham@marvell.com" , "gakula@marvell.com" , "f.fainelli@gmail.com" , "netdev@vger.kernel.org" Subject: Re: [PATCH net-next v2 2/2] flow_offload: reject offload for all drivers with invalid police parameters Thread-Topic: [PATCH net-next v2 2/2] flow_offload: reject offload for all drivers with invalid police parameters Thread-Index: AQHYI9hnxKB/8XMkm0uWEB4X3Xu2BqyXsfCAgAcltYCAAIk4gA== Date: Tue, 22 Feb 2022 10:09:30 +0000 Message-ID: <20220222100929.gj2my4maclyrwz35@skbuf> References: <20220217082803.3881-1-jianbol@nvidia.com> <20220217082803.3881-3-jianbol@nvidia.com> <20220217124935.p7pbgv2cfmhpshxv@skbuf> <6291dabcca7dd2d95b4961f660ec8b0226b8fbce.camel@nvidia.com> In-Reply-To: <6291dabcca7dd2d95b4961f660ec8b0226b8fbce.camel@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f4b3b281-4931-4be1-01c9-08d9f5eb6b07 x-ms-traffictypediagnostic: AM7PR04MB6981:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QLDznENwbfwAI1VTPR5/YkXeh0jKF18x9/209TyNoEOsbJso2Kg/uzILUtXxv/P8J8JBsdfkDHhpSNw6ICOTeXEWZle2QlPtBt6uhvCcT47GHMm9AAf8CqWcpEo2iVmo86t01dvcOs3OQYwOLr6xIWObm8Zhoxu0jxJeKIZTfPaab6z1JYiaTvxDmMqRGRNv0E7a9+F/uBI15qMV3a+PWRUrYOMIwuMbO3ULhuea23pgp8LS+SMPdt4fLFAro9YmqrbGVFyZZSAHWOndbB8C8f1VlqJORFTxwSWWXVCn17cIZhk1EdMG0FqzLn8RwKwgfeiAdSZmt1iww5Ii2YHp9Jmluyudr9CAmirww9sLd3DW6sVNWuxp3obAE+rRFymKYYzZntJAwq3Xk7GdERbXUSoRXKCffl4vNALR4YZLlx2WXC/7gwAcb3VWxvxlEUWtxt/wjd751fEzfwYZQLbympb8/ZuLVnD4Z3pDheBfwIhqFEyENhkqCm5/GYwDm1NAwvFc00bl7k3teaGk2x42gUB3ulpbi7ybq6tiisRoA5l+TBnvG6Ia3yfEleoFn8GUMc9zJltdWhRTuuJqY0LaLg3BXY5mbfKsKT2AxFYyCoQoUMuOzt5XEHIgSZE6r8Jwiztbn0EQ31KALspXusJFO+gLg5Mv5jQ8tEs3bfsvCYbdNAizE++ghD/nk8vsqVrFZVfnYmwze3Bepm38c0YTqw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5136.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(7916004)(366004)(1076003)(38070700005)(7416002)(86362001)(26005)(8936002)(4744005)(99936003)(33716001)(122000001)(9686003)(38100700002)(6512007)(5660300002)(186003)(7406005)(2906002)(44832011)(316002)(64756008)(76116006)(71200400001)(83380400001)(66946007)(91956017)(54906003)(6916009)(6506007)(66556008)(8676002)(508600001)(4326008)(66476007)(6486002)(66446008);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?an0hj9ZTfysLTHezu3RbQ/IaOejfpiFZkZEP/zheCtREmuBjqt+ZaT7gI2U7?= =?us-ascii?Q?S2Lk/685AgVUaT9Gl+EZaxR7s/QFNMN1lTCt2ZuSGz2LnWVvkqDazXfPJKJn?= =?us-ascii?Q?r938BA8qPyBhN4llHLUI0k/rIllELcjxAefSLD5Iqf0QdYWQFWti/Ei3x4YC?= =?us-ascii?Q?dh9to4AG5TKB02lC6HjAHbCic6FR+rBQoh41/e+FNA/NORURt0zlTwfjVA0y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ZG7GbKwXSZVMou?= =?us-ascii?Q?B+lVMjYkojV3FrVQ8ud1yROa/RskBVETGKPRPy94lgQ6RC6tXO+8bD0zAM0X?= =?us-ascii?Q?k9cYgAuaBgcqVwUb/2J9XY95C2EdoesG5i7TN/HOKukP0vIwZCuTQbTzXfv/?= =?us-ascii?Q?bY0X5GAz2r/+d2JBgqugZgQzNWHc1c7FChCAq9aEc2DHNvVcD1ZYasgCLsg3?= =?us-ascii?Q?WK5TsafirmmalOh4gcv2NhfHZGeN/15qpVrP4aoANsBpth59HUj+0Atr0zDb?= =?us-ascii?Q?snav028EcUa49C+PRB6yiiR8OGbOc0QfxZG2Ukp3TFk2mlfEHL8OJ9ojKvmt?= =?us-ascii?Q?BtJ+Hnl8H2yWiPqH69ZaK3TN4x4gVhdUToIyMBNJsKnYOVr6NOVpwG9d02ZX?= =?us-ascii?Q?0w/8a8m1a5EWFGUo/kGWg4v4Unw3yOl4AUEEyGIojx1tHi+MDP2etv70c/Wj?= =?us-ascii?Q?9NXT2YOwzvvoFT68zm8UukwcKefw1vpGP0+E/XnBh0sa/oFT0/3sTojuHw9q?= =?us-ascii?Q?h8lw8s2UnU26mZHwRnNEDLI=3D?= Content-Type: multipart/mixed; boundary="_002_20220222100929gj2my4maclyrwz35skbuf_" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f4b3b281-4931-4be1-01c9-08d9f5eb6b07 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Feb 2022 10:09:31.0126 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GIO9X6X5tmp6PjkjnarJBYcZVZUOw4J+tf5NIQ4evO17QRPO75T6/dB4hfzZ6+AkYHYsHI0Zeb74McBaZs6T2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB6981 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --_002_20220222100929gj2my4maclyrwz35skbuf_ Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable Hi Jianbo, On Tue, Feb 22, 2022 at 01:58:23AM +0000, Jianbo Liu wrote: > Hi Vladimir, >=20 > I'd love to hear your suggestion regarding where this validate function > to be placed for drivers/net/ethernet/mscc, as it will be used by both > ocelot_net.c and ocelot_flower.c.=20 >=20 > Thanks! > Jianbo Try the attached patch on top of yours. --_002_20220222100929gj2my4maclyrwz35skbuf_ Content-Type: text/x-diff; name="0001-ocelot-policer-validate.patch" Content-Description: 0001-ocelot-policer-validate.patch Content-Disposition: attachment; filename="0001-ocelot-policer-validate.patch"; size=7837; creation-date="Tue, 22 Feb 2022 10:09:30 GMT"; modification-date="Tue, 22 Feb 2022 10:09:30 GMT" Content-ID: <90324B3CA641684D8184513C511A9B14@eurprd04.prod.outlook.com> Content-Transfer-Encoding: base64 RnJvbSBkNDAxZjU1YTM0MzkwYzI3YjM1YWU2NDdkMjYwZTJiOTAwNTI4NTE3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQ0KRnJvbTogVmxhZGltaXIgT2x0ZWFuIDx2bGFkaW1pci5vbHRlYW5Abnhw LmNvbT4NCkRhdGU6IFR1ZSwgMjIgRmViIDIwMjIgMTI6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