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 E50A843FB4; Mon, 6 May 2024 13:45:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E8CE14067E; Mon, 6 May 2024 13:44:59 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2068.outbound.protection.outlook.com [40.107.96.68]) by mails.dpdk.org (Postfix) with ESMTP id C4C22406B4 for ; Mon, 6 May 2024 13:44:58 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ad7r6BG0eLWvHTi+L9vykVN3N6IUtt7cNmpv5cfze1B1pw3iZif1qR7gcAvsGrk5QbSZTnKoHIXk84b4pOjQcoUrSVe457dplbWevK24U0WhjIV0/StRhP5BPajRFspHX2EaLqNbe6BxHwJObw9s+OPHLun8FJJjVikJVCmLh9MUdjt1AeX4eZ6cMF/9G9+OY296KYpATtjOGa70VaoKwA+22ukx8WUB7jWVROAWCItspCmWLlErVhmzTuDfthlJuoafXifuRuNDukiBjch77BrmeFdlHYNusGYwZCXnUhDX/U4W3/aR4f+ixOb4Bq6Fsq9P2uTyrJOIaSsCNMtJ+A== 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=Cx06RviQA/BcyHoUJNh6LyGqfiZBMQWWd4HL5w4QWno=; b=DKsEO3rOZygpSKgUsaLrwP+vFfGd2D1Ct7xTn9f1VsIqJ2/fd5vhqt1j8qsml1HVIc8V5+2A/forNTgqCRMR872RE8Cc2mGj+6ULtkC+DLdBTs1fXxGA7jPAo2RGqX0WxoAnmNO9MbxS5C59jNeG84HE5wwg8buLoTGVnsdLDyciBrq4Qv9by14lUlsdVsuCZWL1S+q6YNkFcQHMp1FigYNII1JVt3ec1+eMJRCAT05YsfplSxjXrCjSfb27GIr9D4ISQmRFWR9HsNMXFN6p2LjSQIE54b/tnxI6OxSnfsq4kU8EKsQpCF10jKCqe1w3SMYX9dkA/hjlAW0NpqqxUQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=monjalon.net 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 (0) 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=Cx06RviQA/BcyHoUJNh6LyGqfiZBMQWWd4HL5w4QWno=; b=NxgpY8UpChWDrF6gjKuinGS6cyzqx3FoyQ5ehGfq34hj8Qn5MOs/EYqro6HH50ETiVdr5WtRQwCCrS98MbHyEBOSgb1dTdVHnAoTqgCLkDQLsc6UjTK1h59m3Z+CLIyJWAIJaozConaZYDhimuDFjdLV8i2SkK2rSYXQfMybhKwl/7dD/0vaTlFEX3WYY0w36wDjkosnsUrv4ibrbgh1Em9QkJ2Qru9GVYkEfJDUbfC4bSnYvlhFV9Ys1w1u8UHNUPKN4/w1MMXy6u7J3X7LXhnXR8RrAkLx5+m2GPogTeGZByiqelXT026a8qBo7o6+oiN2VnnkMxjYIi1TFbrEow== Received: from PH8PR05CA0022.namprd05.prod.outlook.com (2603:10b6:510:2cc::10) by DM4PR12MB7525.namprd12.prod.outlook.com (2603:10b6:8:113::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42; Mon, 6 May 2024 11:44:56 +0000 Received: from CY4PEPF0000E9D7.namprd05.prod.outlook.com (2603:10b6:510:2cc:cafe::e1) by PH8PR05CA0022.outlook.office365.com (2603:10b6:510:2cc::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42 via Frontend Transport; Mon, 6 May 2024 11:44:55 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) 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.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by CY4PEPF0000E9D7.mail.protection.outlook.com (10.167.241.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.18 via Frontend Transport; Mon, 6 May 2024 11:44:55 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 6 May 2024 04:44:47 -0700 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 6 May 2024 04:44:47 -0700 Received: from nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4 via Frontend Transport; Mon, 6 May 2024 04:44:44 -0700 From: Itamar Gozlan To: , , , , , , , Dariusz Sosnowski , Ori Kam , Matan Azrad CC: Subject: [v2 06/16] net/mlx5/hws: simplify send queues close code Date: Mon, 6 May 2024 14:44:09 +0300 Message-ID: <20240506114419.966498-6-igozlan@nvidia.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240506114419.966498-1-igozlan@nvidia.com> References: <20240314114220.203241-1-igozlan@nvidia.com> <20240506114419.966498-1-igozlan@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D7:EE_|DM4PR12MB7525:EE_ X-MS-Office365-Filtering-Correlation-Id: 7efc8f2f-4052-489b-ebca-08dc6dc1f34f X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|1800799015|376005|36860700004|82310400017|921011; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?PAdJyJV0lxDnLkkMHKe+i2f8OeMkDeYQ5QdI9iU5yn2vDNuwKhWHN3bjHzHY?= =?us-ascii?Q?+A7w5J15QnK6DqB/pcPdZLV8sLFgy5HIhWWArjeY21SlYGqMDo/RSPp8020z?= =?us-ascii?Q?znGyeoVMSjjKHspiQoymITWL4JpCsZSUtWaX5dM1hc4QUZl8ooZIiIim54rZ?= =?us-ascii?Q?IG60yiK7MqTYAhufz9nw58q8VMXXz/pGq3a5xznF5tpyeXcX9MZve8vM1pd3?= =?us-ascii?Q?qd6BrhaMpq9HgCrdMWpvi9ugtdF0zfQjYvNfJOaEvQZHWnk+BevGdruKLfAG?= =?us-ascii?Q?edo4DfhUWKBRD3AuGSSIDr7QIlt7spfmBsvoqB5Mv5GyuYPq87n9PBN2cwla?= =?us-ascii?Q?NyOXWX4B1XaCbYCkT4hsh3MwT7ag2V48DIZU7QDuxdRov+vp4YeqrKE9MLcH?= =?us-ascii?Q?VTAGZtqbSvMwrPRtcsUYE0MZQ3zmQZJIyWWHh4iqd3mo2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b8DvK77pMMG93a8pwzt+XTmZk4LY7m0/z0FajOf06q1Doi8FtcAD?= =?us-ascii?Q?VrGZXPvCwEjQuzOZev/lJpogMYeD?= X-Forefront-Antispam-Report: CIP:216.228.118.233; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge2.nvidia.com; CAT:NONE; SFS:(13230031)(1800799015)(376005)(36860700004)(82310400017)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2024 11:44:55.7047 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7efc8f2f-4052-489b-ebca-08dc6dc1f34f X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.233]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D7.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB7525 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Yevgeny Kliteynik Small simplification to the send_queues_close code Signed-off-by: Yevgeny Kliteynik Acked-by: Matan Azrad --- drivers/net/mlx5/hws/mlx5dr_send.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/net/mlx5/hws/mlx5dr_send.c b/drivers/net/mlx5/hws/mlx5dr_send.c index d58fdb108f..d61862f074 100644 --- a/drivers/net/mlx5/hws/mlx5dr_send.c +++ b/drivers/net/mlx5/hws/mlx5dr_send.c @@ -970,13 +970,8 @@ int mlx5dr_send_queue_open(struct mlx5dr_context *ctx, static void __mlx5dr_send_queues_close(struct mlx5dr_context *ctx, uint16_t queues) { - struct mlx5dr_send_engine *queue; - - while (queues--) { - queue = &ctx->send_queue[queues]; - - mlx5dr_send_queue_close(queue); - } + while (queues--) + mlx5dr_send_queue_close(&ctx->send_queue[queues]); } void mlx5dr_send_queues_close(struct mlx5dr_context *ctx) -- 2.39.3