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 27C7DA04B1; Thu, 24 Sep 2020 06:02:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B91301DD16; Thu, 24 Sep 2020 06:02:31 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70052.outbound.protection.outlook.com [40.107.7.52]) by dpdk.org (Postfix) with ESMTP id 90B751DCE7; Thu, 24 Sep 2020 06:02:28 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y4XiK7ZEUW0v/Os7eAswXgvI/sNf7FVIXWiwYSpleyMHygC7XEKvPK2ae9HOYRoH7oUoA6vojRPJ7/wH40XGuNGshJB7l4MF/dEyoidgMxbhPbC688/PRm1Iwcjh3AEjKYHuhxJ7Y3gpIenYUxWPq6e+OsmEs7ogw+qzaXLQETbGKYHa7Z2OrotNm/YPmY1+x+42/Do3xwtc2cO/B9T/qAUlJ0xnNu6mIUhS1W5ti3buLlvBG6GE6V5se5B/gTR9YnT8GrcacI8Q7DvArc6VntxfukGv9ETcb5vubMZw4VIFO7VJeartdFzDKphGVBVcg22Cd57lYt8oaF9t64kDBg== 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=PBamAcOo/vgmjiBteM+sU16Aew4wj9keCGkiiJbiLEQ=; b=e+U5WRJyEpiEt16AoxiERuZbmkAjyGupD0iMCQL/7cYd7OOs+3eifukFEfmx9xWfy85sFNarokO1hLPTvwtLUVy6Lxk7yTEYZbaXak3+DCHGuamW8ynmSpjL9JIvI7cGEW5IAXFmyW2RQNlegPd7pf9Qxc1qGVRXBKXCk71ZJIdVfjuCR2xuP0HQfiLCRs6ML3KK8FrEgBmo4XK4jgDWsHkVhGrir5jxGq7i4GY1i2hdPNrqG35OebHRV2tWrX5WD5zIe341WPs+kOzMtNyQ4vK2VsZc4nqh8/2thtJC9Ir38ieRvCuEaukGB6NZX1MS9W0emyGiqKCU05oK1n/+1g== 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=PBamAcOo/vgmjiBteM+sU16Aew4wj9keCGkiiJbiLEQ=; b=RXb9jFQN0Agz/XSWzl6T1tnNqe2LRfO6nP6Z+9fX7YYLxOqxqaMs6+tQSuFnJMhUqYjMewmPJt1rkVfc53m1REK80evILVJ4pEz00XWrXQwjRCWSx3nBrc241uG5k42oHnw0xKGtF2p3v14kSK3ppYlCby9gtNfP11D0CmA9dz4= 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 VI1PR04MB5839.eurprd04.prod.outlook.com (2603:10a6:803:e0::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.11; Thu, 24 Sep 2020 04:02:27 +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.3391.013; Thu, 24 Sep 2020 04:02:27 +0000 From: "Sachin Saxena (OSS)" To: dev@dpdk.org, ferruh.yigit@intel.com Cc: stable@dpdk.org Date: Thu, 24 Sep 2020 09:32:06 +0530 Message-Id: <20200924040209.32719-4-sachin.saxena@oss.nxp.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200924040209.32719-1-sachin.saxena@oss.nxp.com> References: <20200911083520.24020-1-sachin.saxena@oss.nxp.com> <20200924040209.32719-1-sachin.saxena@oss.nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0010.apcprd02.prod.outlook.com (2603:1096:3:17::22) 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 SG2PR02CA0010.apcprd02.prod.outlook.com (2603:1096:3:17::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3412.22 via Frontend Transport; Thu, 24 Sep 2020 04:02:26 +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: 0152f615-bb1d-468d-ec0c-08d8603ea696 X-MS-TrafficTypeDiagnostic: VI1PR04MB5839: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: 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: DU4uIi5XRSYlOrXK9CEHn2NLC8CkJhFKLh86bNfJDGSDbb8WtULpwbF2udBv3JUNxFJjx+k6+hrteewarYezTDAO7WAcviXA/2C8dLFbtQZmRWfoD8WjT4NY6Pk7lClYE5Ci/Fu3P12dL1SY1H3qtVWiHGiQ/Ei2fUCuG3hgwFGlaa2GURFoD6TNPvtd0XtliPGxYlc0lOFxXIFc6fTlCij1Seix45keucje+mrJzZYsGJEQjn64JVwD0m9Id8r1QvPCQga6bFRZZaoDZI2Fcj+lLERMm12Ls58OB5KDjBtqEmTBFZxU05SqJLKPXn7GKsyJhFaDEVOUyobYezBLGcqO5VGvQU3zpKntKfOGH6JRqJAzGE+UQLFC6a+rmsT7 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)(396003)(366004)(346002)(136003)(376002)(39860400002)(2616005)(4326008)(16526019)(83380400001)(186003)(6666004)(478600001)(26005)(316002)(6486002)(8936002)(1006002)(6512007)(66556008)(55236004)(66946007)(52116002)(1076003)(956004)(86362001)(4744005)(2906002)(66476007)(8676002)(6506007)(5660300002)(110426005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ZDGzcFINogANqxQ8XDEOQLea3qahIzCE8eSn5pYRPnMUkBQxmFzZe0Wxbm12HzlYp0ux1i84BHFUgMw01M4M+b00jFjea0231U4yVej1iXye66GZeB2+5vBHsUuBFUuPgEKFRVefu4oAIVQZW7Kjv/s7/3OqSPxbyMlbnBdWyGiVVDD/qkjMdZjM9tk9KcNZp9FJuYGliQsIz1+1C6TeAtF4gIJA1sRGa7upuHwk0YZnDr3G/IZlFP+GM6T+eXrDJr7nVhtSsL6anRY0poo4CkvVyAK1wKDFMAf+AiGwpU/DDSNOSPuoxb88FhF+cEYnJANzC/DHiFFqC4Lj8qyhuYP5zZnSl9kXR9cCggSux+/zxy4HquiGZWOuKHKaWKElpOQ+lP2Cr+ooJD5mOGpSGACnOHiDBqR0dzmEnM8wAI4yO5pz8uIom5GaVU8w/75nfz9RzPzbEyg5TYbBokV97zCmzdmNDyQhCWZj4Mxe/PrxDLTKecEcUZVrggWh1kNG5SZtkg87myBL7q7vtYo4aUfSR+noyqQmhnFg37QaT3uN5OkqaSCdK/TCeeVwoJn5UTZ5e/0govJD/VC2LDjrwZO/iJzhKwRXVndT6z1+ALZ2HTZ45YPt4eMhRdDSQj0lVvHwRe/YwibzRKdBCVTa5A== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0152f615-bb1d-468d-ec0c-08d8603ea696 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5837.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2020 04:02:27.5860 (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: R4azu6hx+ORNrStviUpbMW808meU0DFmH1dqf0Xnc7Oe7kg4sqnuku1tx6QsNTLbclpg2k66sITjjEoULwjbhw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5839 Subject: [dpdk-dev] [PATCH v3 3/6] 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 boundary condition with spec length. Fixes: 3f881f8d6eb0 ("net/dpaa2: support raw flow classification") Cc: stable@dpdk.org Signed-off-by: Apeksha Gupta --- 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) { -- 2.28.0