From patchwork Fri Sep 11 08:35:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sachin Saxena (OSS)" X-Patchwork-Id: 77363 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7C5B4A04B5; Fri, 11 Sep 2020 10:36:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 854061C11C; Fri, 11 Sep 2020 10:35:42 +0200 (CEST) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40078.outbound.protection.outlook.com [40.107.4.78]) by dpdk.org (Postfix) with ESMTP id 062EA1C115 for ; Fri, 11 Sep 2020 10:35:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CjZbJyYjmWKedIvVcUNwNyfy6nGH+MNKkixL1IVCPE5fp5iPPZvMuFcwwFBNrg/EAnkp3/k0jND3WcFh7XUtqLXVCKdKvEaauc5FbBYXL5pecI8cUXKKpYkOgDhWj9L60hPUHljDkBEY5R5h8B6IM/AqntXd3g7XYBGn9x0voGFYGqij7J1RZD+TfHc2LxaskFYMWsyq3aP1AUdOSjy3QBmjY0cmc640vX83V+Nrh9b6DjI0GkDBTSrMjq6JrhcntMJJ0oCzQaH2NOGMAVyO2BIrYD237AouoHYsKlwGjL8q7wtjNRBV6913bD2X5pQSI3foBNTvYNdT/geeVPIiwg== 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=k/yZQGC8wco+E1OGunhhxhU8ICqv8m2ox54VshLxMbU=; b=GxcJKGhsWBYI5TKLH3OsRtR7b3gYVvYOCBJhl6BFJFmlrh7bVpRA/kIEwaz73TzSvOnq7Az02eYTCn6AGJESRJxHYPZ/ek3nVvRdXCwOUb6Iv0UmgSs7Gw6M0z9TsHxAY7n/cZWiIfdOpG7Xyz4+O5xBWP9zqXWygCUdfxH3KpbBlH4FtPbBKHRloDjAojkBjwVh080tYy/sGbfBdQEKWs1cuRcipDVXAJiSgnbcvHf6dUVRfdKifwAYXFBrbnig1GbPPLQs6Nwe6xKgb8+izwGGu6hgpJlYVrVNhOQsF7J7/A/rnHhYzWbaCFmPPpCQu8L4UhK34cIFIwkzR6jHXQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k/yZQGC8wco+E1OGunhhxhU8ICqv8m2ox54VshLxMbU=; b=Fyxw5TpfTAfw79i1sU332p+tCiOGTKCRJMU/EWj4GycvJZrlZACRS8aKd5Ovo4Vr/yHuUz4KrBadUD2DZS+UkcZbit9cI1uXs4rJgQwDCmFC3PGAVSDnEixR174HvL9kGK8RDZmlkAXqFgyTkvUYeCLFJkXohtjHS79Hj6g5DZE= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR04MB5837.eurprd04.prod.outlook.com (2603:10a6:803:ec::28) by VI1PR04MB6973.eurprd04.prod.outlook.com (2603:10a6:803:13d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Fri, 11 Sep 2020 08:35:39 +0000 Received: from VI1PR04MB5837.eurprd04.prod.outlook.com ([fe80::cc01:9fe2:2544:8a4b]) by VI1PR04MB5837.eurprd04.prod.outlook.com ([fe80::cc01:9fe2:2544:8a4b%7]) with mapi id 15.20.3348.019; Fri, 11 Sep 2020 08:35:39 +0000 From: "Sachin Saxena (OSS)" To: dev@dpdk.org, ferruh.yigit@intel.com Date: Fri, 11 Sep 2020 14:05:15 +0530 Message-Id: <20200911083520.24020-4-sachin.saxena@oss.nxp.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200911083520.24020-1-sachin.saxena@oss.nxp.com> References: <20200911083520.24020-1-sachin.saxena@oss.nxp.com> X-ClientProxiedBy: SG2PR04CA0178.apcprd04.prod.outlook.com (2603:1096:4:14::16) To VI1PR04MB5837.eurprd04.prod.outlook.com (2603:10a6:803:ec::28) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from lsv03161.swis.in-blr01.nxp.com (14.142.151.118) by SG2PR04CA0178.apcprd04.prod.outlook.com (2603:1096:4:14::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3370.16 via Frontend Transport; Fri, 11 Sep 2020 08:35:37 +0000 X-Mailer: git-send-email 2.28.0 X-Originating-IP: [14.142.151.118] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1b102610-5fe6-440c-f712-08d8562da900 X-MS-TrafficTypeDiagnostic: VI1PR04MB6973: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2582; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iQk7gAbvzOEfULnjIWI3olF55paTbhJZdF+PCsJqHYasVecLiAc9cQ0KXB85ZJi01D285BUMMsinsHdqvi5ytz+H5ht/yfGA+kStMZeoFlPCOUdZHaKaOb8C7bh9K2CTHbAaCNnux6laULpj7wlORE4T9246kHVgH5DO/vhS0IDuIhxx2NVOlMRsw431HGkZO2IJmyab/txoHmZoNhk7DUjx5nWvFAEH71TnNi22eMF9ziBGnTJXlXwdaeh63AU1MRBNGejJnV1cFwo3sPZ9wW07hISef4PKobr7SyE4dNz4XT2o2q9mibqK2mer9qBVoU28rVYQcMovup4Y2F/8KPeP+h4wxjJgWnJ/5bB4H8BmDKYUJA5XaZ+qtFC/5TBY X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5837.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(376002)(136003)(396003)(39860400002)(366004)(52116002)(86362001)(1076003)(66556008)(66946007)(2906002)(66476007)(8936002)(5660300002)(83380400001)(316002)(8676002)(2616005)(956004)(6512007)(16526019)(186003)(6486002)(1006002)(6666004)(26005)(6506007)(478600001)(4744005)(55236004)(110426005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: q24eBhiXFfpbMFOof+sCdHMbAB3xq/701Wo2UFGS6DbnAnmk8O27kzHwYO35k7bSI0XokLiz3U9pkhLxaE00vJt1a8jXvS5ZAr+VkXYNxcruBuURaM7Cs5FzR0bwjY0c71ScoSkOvU4Bm08RFoLx1Tr417k0fUvHhL0bf6xvR4V6EYxg710ddWRtSxlN2zg1Vcz5QmaA6u73Po7fRo8aHGHrMtzmB+/PXCItTugQHNkxaXO0ESlhGZJifyhUYxauN4GVv6NEz4P4/6dWVR9EQiyFp/caebFYZ03KQVdPtftiIUbzL6SJrwqiWeKZqwIa1sZRH5zBHRJojEp7vIj9Lq5mzSo56fRKcJm4wvR92X+redK/3M5NEnQyrY2HDvKBCDwAkIyozMGTr6xZg3tXgiWZ/cK5i0jBl403LvrkR9VVUcnENWDdII0jfdqpDFM/Z3My0uEMocIDnUjA6tarUNb54V/hAbrlveVWkdI26fs0RviwLIrzVsvssPeAdiTlMpvoYAH9W0ge/1S/nO/8nCreSDEH6p3p57+q/MfC8oz1jlxVdgm4aeYkArOxYLZyW2jSDUyaeIf/XXnmAeX4+Alpn1zcXgJ3mt73exZAmDA5LY4MZnaOXaLtRLtaGfuEn9VdxqwYu/z6CLQvRwH8+g== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b102610-5fe6-440c-f712-08d8562da900 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5837.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2020 08:35:39.2319 (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: gI3nzDblDzsNFS4hgrJBBTcGqpoAwadvjCA5poHXFZxxbmio693FFgrdKKlIm11XgTbfEpW5M52KqWZPVrvjtA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6973 Subject: [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" From: Apeksha Gupta DPAA2 has support for raw flow classification, which can be used for any protocol rules. This change fixes flow key pattern length match. Fixes: 3f881f8d6eb0 ("net/dpaa2: support raw flow classification") Signed-off-by: Apeksha Gupta Acked-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = group; flow->tc_index = attr->priority; - if (prev_key_size < spec->length) { + if (prev_key_size <= spec->length) { ret = dpaa2_flow_extract_add_raw(&priv->extract.qos_key_extract, spec->length); if (ret) {