From patchwork Thu Mar 30 08:02:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 13193559 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7A62C6FD1D for ; Thu, 30 Mar 2023 08:04:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230192AbjC3IEC (ORCPT ); Thu, 30 Mar 2023 04:04:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230128AbjC3IDo (ORCPT ); Thu, 30 Mar 2023 04:03:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2A7F7695 for ; Thu, 30 Mar 2023 01:03:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 683DE61F46 for ; Thu, 30 Mar 2023 08:03:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14321C433EF; Thu, 30 Mar 2023 08:03:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680163403; bh=fVGweFyqjjyGxV3P3pNnWhUwVeFFAtoFWV0Vk7hMuhM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P4ZWvysSY1C4dkZGy97JquKN3AOyyAK+TuWmw5PjolxXFHHajdPQu2UUHS5MSYILR 7u7PywlWS/0PhGGJNVJaiXuDmTwgQ9DktGPEIquv8/WiUuwPkWiCkvb3jcB1459xnb r+770pI7gVkSRCI2YsNV4V3jmaPmZ3CREs/Hlg4qFF/lFCvlIGpKYZTHuk7ZjThvp2 Imc5y8fVdC0Wc6szNdF6E3lHexjY05OdtJ0yH+r5nHb+t438+niHfPs5QZgJjcCpqp dFzT4fKA/fjJQrryblrT78GzTN24K3vycOh3Cq5i4NC/THejSb0tL2SWg4DB9IYkU5 BMPMTSSbR9TJg== From: Leon Romanovsky To: Paolo Abeni , Jakub Kicinski , "David S . Miller" Cc: Leon Romanovsky , Saeed Mahameed , linux-netdev , Raed Salem , Eric Dumazet , Herbert Xu , Steffen Klassert Subject: [PATCH net-next 08/10] net/mlx5e: Reduce contention in IPsec workqueue Date: Thu, 30 Mar 2023 11:02:29 +0300 Message-Id: <5dc224a4decd09c14f645d38173e1a1710802cd8.1680162300.git.leonro@nvidia.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Leon Romanovsky IPsec workqueue shouldn't be declared as ordered queue with one work per-CPU, and can be safely changed to be unordered with default number of works per-CPU. Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c index b8058f89365e..fa66f4f3cba7 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c @@ -561,8 +561,8 @@ void mlx5e_ipsec_init(struct mlx5e_priv *priv) xa_init_flags(&ipsec->sadb, XA_FLAGS_ALLOC); ipsec->mdev = priv->mdev; - ipsec->wq = alloc_ordered_workqueue("mlx5e_ipsec: %s", 0, - priv->netdev->name); + ipsec->wq = alloc_workqueue("mlx5e_ipsec: %s", WQ_UNBOUND, 0, + priv->netdev->name); if (!ipsec->wq) goto err_wq;