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 9DD2941D8D for ; Mon, 27 Feb 2023 08:09:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 997D940A84; Mon, 27 Feb 2023 08:09:17 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2073.outbound.protection.outlook.com [40.107.92.73]) by mails.dpdk.org (Postfix) with ESMTP id 45CBC40A7D for ; Mon, 27 Feb 2023 08:09:16 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RWgcW954CSYRie8W43kcnSQA/DxOFp0z89tHAAMOLt2YOgnaUhGa4HzaKAm/5MehcCF/vuxz91CSMPLlvYjP9DP1lJzJbk8lxtwxT92AZVlpmyOpX2lZ6A1fQXrh7jBZjwbJf3bfM+KdxkaTlFYbuUKHEmXqi+CF+4CgmzOHOSptDPUk5NrEqxWje5yabXNJY2k9Tt/1DPsVQ+gOHKYxwG/UDHsfVi8BlSOPTR0f+XrkRkoYW6tq5BtEzBpMsxT9imqCDDxJxoHrOZRXquvoeXSiH/ep9Bm+xjVBjODYnvgQPXSJfitDNerguLlsTKlhMC0XBBD37Vh6C0UxyTq4nQ== 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=pab0+uemgl5OCNRFrWALLuPeIylMqijve2hQ8GW02IY=; b=jd25I5zj0Zbg7lOiKCeBcAtevSimp/QM2pSMJY8gOzje6ywHKrrvQ1HbNWWKlalVnJZVSV5+wYYHo5l5xdZZljKrK9gT+Y39JOKgdYe4cEi8lHBQiJF1x6L/A6MC3uQXJz4SJtJPC9PJeVxKBrkL5XFw0dZE273n2G9hk4/0whXyiWRxVBxWshNLB61VZr9vL8rhgG35O+M3GLjralBWRJUs9iRrTBlCRzbi9ZH2Hcd6otXdgSj7NprsB1IAY9StoYTbK1PeLBD7O/yZX+Je20PR2KYiHTJPZ6vKV7kd13sN1tfK3SWpo7G4Fk1Qg29vi5HTT7CxhD0Y7l7NKqK+GA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=marvell.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pab0+uemgl5OCNRFrWALLuPeIylMqijve2hQ8GW02IY=; b=Z5EYyPM/p+TkdNal1kO6+OhC9tqT0rrLJn124FJAZmItSxNDQxthxr6aRlcwUcoGj1C6mmPSZcVviq5fDExZBfjXm2JmQ+I+kkQAVSzWkyGUwVSx2Lyahoz+680h9TIJAzbLFI8ZHCVuRNl7PoRfp/BxRCrtjFOUStGufzI5LxKhk+5k0jcpZUyk0ECrx0Blz0VJgSrBFbrPFBgqpsIJPu/RiIbRwRLkH357/WYZJ+UVZkbdu7YRYq00DOW4UMWu9wbcoxZ3pnP2uUZ+pHNH7NY0SJaCmasOP+X40zgDh1cxAeLSdYfXQbFOgC2i3PmhaibnCfr0InNKr675Jo1VmA== Received: from BN8PR04CA0060.namprd04.prod.outlook.com (2603:10b6:408:d4::34) by DM6PR12MB4283.namprd12.prod.outlook.com (2603:10b6:5:211::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.27; Mon, 27 Feb 2023 07:09:14 +0000 Received: from BN8NAM11FT019.eop-nam11.prod.protection.outlook.com (2603:10b6:408:d4:cafe::ab) by BN8PR04CA0060.outlook.office365.com (2603:10b6:408:d4::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29 via Frontend Transport; Mon, 27 Feb 2023 07:09:14 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT019.mail.protection.outlook.com (10.13.176.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.14 via Frontend Transport; Mon, 27 Feb 2023 07:09:14 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Sun, 26 Feb 2023 23:09:05 -0800 Received: from nvidia.com (10.126.230.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Sun, 26 Feb 2023 23:09:03 -0800 From: Xueming Li To: Sunil Kumar Kori CC: dpdk stable Subject: patch 'net/cnxk: validate RED threshold config' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 14:59:43 +0800 Message-ID: <20230227070107.15664-75-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230227070107.15664-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230227070107.15664-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT019:EE_|DM6PR12MB4283:EE_ X-MS-Office365-Filtering-Correlation-Id: 6d2b55ce-c2c6-4c0a-bccb-08db1891888d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CkUzX+hdXc67mSyz8RcaW68u0f7NM/jqLeG07xHGbAbU27FPL3QvhMecMVSGuYSNwmfJj1v4wARaSjw3r0euFl0K2inW0f7inS+sB7WJMuHr5jHIxeAz2Cix5gCRPQi0Fog7GuXSIWyCPqjEW4P07RjTV+A9mqXe1nRaan7W4xvyO4hlU+KZq+Ck1o0pfNX/Yp/P3yEIF8rew5mRg3fV/jUaWZJs86FoPitpCWQ+vmOoIXIYntsV6bFtyvvh0Krq1trRbopqss4Dk9sKpG1q60idsowNUEXEN54XncSKaytZbJvl/G5y3UyKK5aHsCxqwQFo2uRfOkTqd8Ga1o9ExzmK6UkuO2eLSzgapiPnZ3sPz93pdhTnx3X2qjVpKLe9r/7wcxxyJ1eV3gxDGCocSkj8+nEt7T6KD9WpA3Z642huZpCEHuSvb2EYwinngG4WmIXZzZhwj8AIzY2TKbdP5d7Dy5s1fnvlwTGhtt5ufniwVU0grbO+l4EWlyGWq6EVYWfKD2UIqu7lxSMWGY/+Zo86+X0UvV6XIRtWLQEpuCBxM/4zR5JrP4g2wFPvJHWcKq0U+q1F+IkY5VB1RoMl8beWKhKDm0sCY6w1gGir0Jfw4bfLeHcYt+iSmXEk3ky5UizWpu6TBK9XjNn4Ofs+hx+mQOMX0HS6mn4XJGyr2FUMlA+LuB0cd7N9qPATGUljHHW0Cg/B5vMu+dyosME6a4ayHqLmCU1RtRgV2z6ugxOz+0mjVAZfCPLASJr1nnPRNcaaROmmVt582Mn1TNaSBJs0PlpeT3uKSHXHN4qCyufRbfGtNRpvXh212b/fBQ3P X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(136003)(396003)(39860400002)(376002)(346002)(451199018)(40470700004)(46966006)(36840700001)(6286002)(186003)(16526019)(40460700003)(82740400003)(7636003)(83380400001)(316002)(356005)(8936002)(6916009)(8676002)(4326008)(15650500001)(41300700001)(70206006)(336012)(2906002)(5660300002)(70586007)(34020700004)(36860700001)(6666004)(7696005)(55016003)(40480700001)(478600001)(1076003)(426003)(26005)(53546011)(47076005)(966005)(2616005)(36756003)(82310400005)(86362001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:09:14.1340 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6d2b55ce-c2c6-4c0a-bccb-08db1891888d X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT019.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4283 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 22.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/01/23. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=23cb90427af131777e961f63d715b3c520e9a123 Thanks. Xueming Li --- >From 23cb90427af131777e961f63d715b3c520e9a123 Mon Sep 17 00:00:00 2001 From: Sunil Kumar Kori Date: Mon, 2 Jan 2023 22:13:53 +0530 Subject: [PATCH] net/cnxk: validate RED threshold config Cc: Xueming Li [ upstream commit 9fd66d79d3e27dfb28e04d10e0ee63dfc64820c9 ] Added validation to check minimum and maximum RED threshold values, passed by user. Fixes: b7d3a0fe71eb ("net/cnxk: support congestion management operations") Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev_cman.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/cnxk/cnxk_ethdev_cman.c b/drivers/net/cnxk/cnxk_ethdev_cman.c index d5e647c64d..a7ccdfb756 100644 --- a/drivers/net/cnxk/cnxk_ethdev_cman.c +++ b/drivers/net/cnxk/cnxk_ethdev_cman.c @@ -68,6 +68,11 @@ nix_cman_config_validate(struct rte_eth_dev *eth_dev, const struct rte_eth_cman_ return -EINVAL; } + if (config->mode_param.red.min_th > config->mode_param.red.max_th) { + plt_err("RED minimum threshold must be less or equal to maximum threshold"); + return -EINVAL; + } + return 0; } -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:43.323543100 +0800 +++ 0076-net-cnxk-validate-RED-threshold-config.patch 2023-02-27 14:08:40.799237000 +0800 @@ -1 +1 @@ -From 9fd66d79d3e27dfb28e04d10e0ee63dfc64820c9 Mon Sep 17 00:00:00 2001 +From 23cb90427af131777e961f63d715b3c520e9a123 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 9fd66d79d3e27dfb28e04d10e0ee63dfc64820c9 ] @@ -10 +12,0 @@ -CC: stable@dpdk.org