From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id ED39FA04C9; Mon, 14 Sep 2020 12:51:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8C8FD2C36; Mon, 14 Sep 2020 12:51:43 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2086.outbound.protection.outlook.com [40.107.20.86]) by dpdk.org (Postfix) with ESMTP id 95D94FFA for ; Mon, 14 Sep 2020 12:51:42 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E9yzp3xGgWTKFsh2DKfZE2byuhDXCW9L9BHTYewIPv9imBx1T0MtETn8/u6P0whSR1iKVcGIJ0pZSoGEBr0AQwfW53Rfy/quz5jgl2TI5DT54uLkzOSJkq8r5DJlD6wQM3gOOHjOm9VPb9YacrMEfC0qtsQ8Q+mAKPZJvNTiEPWIOPElG/XsBjEzYqYhNMsUpdD5v7LDAfrI8ECHiOnEzKWm9Amg55rsedT3MUQO8OO2ANxa9lJq/UBcFeObUd+lEmofdc0TJ1+KQU4VZhz/rorSig1fFNkOCMuf60oxYsg1LA+EgxU8EMneSr0W0BEf9fb72NbYeT9DF/qtgGNNTA== 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=hkII58cQQf7Z9BYL20+Qlp0bJMlFGEe1ddsW743uqZE=; b=WQs+Wi1QtxrhQuVRKqh/DwK8wQorRKv9J2r2t5dELvZsHWXFdmhurPGRfwXVNHzPWA1b6R0FKlwv8fb0QY0sr3xrvmI+OFGq/VzbLfOE1SZB3T0Jg6AWVh1meqSvJe+Z2tn72lPN+aB75NsvqptRzAr757s1Hv8hoZyYDu8eVEGycq3YqEwYwvhiwZyDc4E2kocIR6zpio+YTYnLqnNXsuSlN+Q2mqpk7kCyGN4aAByG6wjvKMYamEdy6Td5mnpXqqLqPYccH89WiJSc2a0VXt5qOug6RXWazCI3AW22JsZZtt6e1LNxjJvsar3v+TMP0jOgnQ4HCXsiJXb8cfELxg== 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=hkII58cQQf7Z9BYL20+Qlp0bJMlFGEe1ddsW743uqZE=; b=elgYSrZUUdz6/c6eDisxOHReMasmiZYBYbajeY89boH25ONRvPbwj1QyAsKeCXjsGoS0WtPoUNEmzJLpSxe1114282t5MKkh3hy9SoZusM9A8GEs9zrOsTqbgSevnEiG/cL2W9MKllG9FlstEpyLwH9Mb7IV/4nkSN+/zLHIb5c= Received: from AM6PR04MB4456.eurprd04.prod.outlook.com (2603:10a6:20b:22::25) by AM6PR04MB4037.eurprd04.prod.outlook.com (2603:10a6:209:49::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.17; Mon, 14 Sep 2020 10:51:42 +0000 Received: from AM6PR04MB4456.eurprd04.prod.outlook.com ([fe80::e024:2be5:29c3:31b0]) by AM6PR04MB4456.eurprd04.prod.outlook.com ([fe80::e024:2be5:29c3:31b0%7]) with mapi id 15.20.3370.019; Mon, 14 Sep 2020 10:51:41 +0000 From: Hemant Agrawal To: "Sachin Saxena (OSS)" , "dev@dpdk.org" , "ferruh.yigit@intel.com" Thread-Topic: [PATCH v2 3/8] net/dpaa2: fix check for key size Thread-Index: AQHWiBaHpPiPi+GRe0qE6KGhbPynPqln+YtQ Date: Mon, 14 Sep 2020 10:51:41 +0000 Message-ID: References: <20200911083520.24020-1-sachin.saxena@oss.nxp.com> <20200911083520.24020-4-sachin.saxena@oss.nxp.com> In-Reply-To: <20200911083520.24020-4-sachin.saxena@oss.nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: oss.nxp.com; dkim=none (message not signed) header.d=none;oss.nxp.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [122.176.3.89] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 2fd68b43-9c95-4824-be98-08d8589c2a3a x-ms-traffictypediagnostic: AM6PR04MB4037: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: YS5/JlhYKRoTx7ZIZuOOOI/C5tJdd9BdMi+AZTfn/APB+P8Fs1lVmatskHf/s2dO2SNN1EW3VLzqiHjs41Qyn07jq+U3Xro15edqnt7NMbCsJRkjJkUsPBHBDyWO9dmz7Za5q+8SOJUy0GmBhfCOQCU94aaw7GbEqR961iGyP/T4Ru9buYVg3KZ1dWIAv29wVaVXWMWvjiOUK9BNFGyuC4XfV97o0JctDq/9doVr1glMIP7C59tR0OrltZIbGCwZXk7Mj2zUe0+YwnfmiCCdKgKNJlcyXImfKqgLHPHz1c9ViCQIMvpdscHle172/aK5PKyKjmljq248UmkiucJvrA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB4456.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(366004)(39860400002)(396003)(346002)(376002)(26005)(186003)(316002)(71200400001)(8676002)(52536014)(7696005)(83380400001)(86362001)(8936002)(5660300002)(9686003)(2906002)(44832011)(55016002)(110136005)(64756008)(66476007)(76116006)(6506007)(55236004)(53546011)(66446008)(66556008)(33656002)(478600001)(66946007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: M6n9UskwY9yuLU1ml17+vYeCP9vczTEBuWXQr4aaaTcGBZ5kdi96hHsWYA0ZA/mxrmbLxlDnnwJWCqXNmlHvsp8lyAVF1sgCM1vmwP+7j9v1pP3ktlI/HWIh5SWjz0/ILVkkXZ5EgUWomGBypMCFHBUBZJN7CDmmx++GrDXcr7/317Jj0YN+K4yFlofaiTPk5zag4jQp9ArfVLfpPh6KCGs7rVKNInzGPCcTsNLkH4XGZj1ynrUsBZoW/cqwSShy0PhTUtqYIbycWw0pVAgI5nedOQS+5IGV5GQBz2p2qkVu2OQuavCrdE7upv1U96fCakQ4MXTCE3estzX8BzZsq81Ag7OED593jaJiOcWl+ZoDnrspvDKEiVdumdhWSZT5ezXN+smH1uP6ilZ4YZx/i2dFbt9Ax/XMB68mWZ/Z5977IxkssK42vZHoD4BpI1rNgxeBCiMV6kdDG8niMnwmF2MbvN7MwocaLzR1sTuQBVOPk6+lxoa8rbDGM91ws3fc9swM9lSBbkr0plTtAs2+0uOrtdWWXrPuMWrh/z+obH1eIp4JWiC0Ageym/xF7R9LVpdzRY4kjA1MO7a1A4NClWaQuZV1+leiWuGqy8FoDumUNVke4LIUCE43DT23yBSZRXD92BhOxLkUJun72qm6Wg== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4456.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2fd68b43-9c95-4824-be98-08d8589c2a3a X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Sep 2020 10:51:41.8651 (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: m1CMmGlLkQbjI14b66zBpME22pUEtch0ZmLY2GOcARQKt+7BgQTvPstJu24a5HfSNmXCeYiAnNNYiXglxhRwPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4037 Subject: Re: [dpdk-dev] [PATCH v2 3/8] net/dpaa2: fix check for key size 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Sachin Saxena (OSS) > Sent: Friday, September 11, 2020 2:05 PM > To: dev@dpdk.org; ferruh.yigit@intel.com > Subject: [PATCH v2 3/8] net/dpaa2: fix check for key size >=20 > From: Apeksha Gupta >=20 > DPAA2 has support for raw flow classification, which can be used for any > protocol rules. This change fixes flow key pattern length match. [Hemant] Can you add more about, how it fixes? >=20 > Fixes: 3f881f8d6eb0 ("net/dpaa2: support raw flow classification") [Hemant] please Cc it to stable@dpdk.org With that Acked-by: Hemant Agrawal >=20 > Signed-off-by: Apeksha Gupta > --- > drivers/net/dpaa2/dpaa2_flow.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/net/dpaa2/dpaa2_flow.c > b/drivers/net/dpaa2/dpaa2_flow.c index 843021335..29f1f2e65 100644 > --- a/drivers/net/dpaa2/dpaa2_flow.c > +++ b/drivers/net/dpaa2/dpaa2_flow.c > @@ -2901,7 +2901,7 @@ dpaa2_configure_flow_raw(struct rte_flow *flow, > flow->tc_id =3D group; > flow->tc_index =3D attr->priority; >=20 > - if (prev_key_size < spec->length) { > + if (prev_key_size <=3D spec->length) { > ret =3D dpaa2_flow_extract_add_raw(&priv- > >extract.qos_key_extract, > spec->length); > if (ret) { > -- > 2.28.0