From mboxrd@z Thu Jan 1 00:00:00 1970 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 smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 635E6C02194 for ; Fri, 7 Feb 2025 00:24:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 0D4B584948; Fri, 7 Feb 2025 00:24:34 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id ohKV1nTI_TPV; Fri, 7 Feb 2025 00:24:32 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org C5BB58494A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1738887872; bh=41PEVxVSksJRZRsl2JkWcFebR9jMlRm3TEy4GCAbKvA=; h=Date:From:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=zfKUwxm1GMaH2c8MHqcdppDxcpI2DM/gXZws/ohV2/mbqbkVMCi80RTcmNNLvNZBh UFYrBrXAAR57aXxxpZEiQ/TAMWPQEB5ZOz7jRSSkk+67sGop4pnQdEDJOHVEWLLnTo HEdwf5gBMaFGThbe4lQKJVZsCiHMGMyuA8StbPvK0IGZ00NrRAiT0DafpsX6yhAmcf YYE85Qpkb2nyAqyiW8zFvoo0DYJJJV8L2aNvAeE8b7/OVw9J0oGNRghjnfSmsK1CJ/ kHIN8PFoh80Sbc+hcwGbzdvCnCfEd7AKX1kkKTJtM+uzNvVeMXRRTvsiAq2XsR10VL 1lpZc2GxfSuvQ== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id C5BB58494A; Fri, 7 Feb 2025 00:24:32 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists1.osuosl.org (Postfix) with ESMTP id 1A853C5 for ; Fri, 7 Feb 2025 00:24:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 0A83F84948 for ; Fri, 7 Feb 2025 00:24:31 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id lD8gRLT5pf9k for ; Fri, 7 Feb 2025 00:24:30 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::633; helo=mail-pl1-x633.google.com; envelope-from=jdamato@fastly.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 31A9E84945 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 31A9E84945 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by smtp1.osuosl.org (Postfix) with ESMTPS id 31A9E84945 for ; Fri, 7 Feb 2025 00:24:29 +0000 (UTC) Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-21f48ab13d5so16660345ad.0 for ; Thu, 06 Feb 2025 16:24:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738887869; x=1739492669; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=41PEVxV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4WobEEPc36Z+vAEHPsqoMCHNM4w== X-Received: by 2002:a17:902:f710:b0:215:a96d:ec17 with SMTP id d9443c01a7336-21f4e6b8bf1mr19054735ad.14.1738887869339; Thu, 06 Feb 2025 16:24:29 -0800 (PST) Received: from LQ3V64L9R2 (c-24-6-151-244.hsd1.ca.comcast.net. [24.6.151.244]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21f3650e69fsm18941575ad.1.2025.02.06.16.24.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2025 16:24:28 -0800 (PST) Date: Thu, 6 Feb 2025 16:24:26 -0800 From: Joe Damato To: Ahmed Zaki Cc: netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, andrew+netdev@lunn.ch, edumazet@google.com, kuba@kernel.org, horms@kernel.org, pabeni@redhat.com, davem@davemloft.net, michael.chan@broadcom.com, tariqt@nvidia.com, anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com, shayd@nvidia.com, akpm@linux-foundation.org, shayagr@amazon.com, kalesh-anakkur.purayil@broadcom.com Message-ID: Mail-Followup-To: Joe Damato , Ahmed Zaki , netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, andrew+netdev@lunn.ch, edumazet@google.com, kuba@kernel.org, horms@kernel.org, pabeni@redhat.com, davem@davemloft.net, michael.chan@broadcom.com, tariqt@nvidia.com, anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com, shayd@nvidia.com, akpm@linux-foundation.org, shayagr@amazon.com, kalesh-anakkur.purayil@broadcom.com References: <20250204220622.156061-1-ahmed.zaki@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250204220622.156061-1-ahmed.zaki@intel.com> X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; t=1738887869; x=1739492669; darn=lists.osuosl.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=41PEVxVSksJRZRsl2JkWcFebR9jMlRm3TEy4GCAbKvA=; b=in7c4nS+ltf7iLBdDqt5g9u6OL63hx6tNeDZoaK6pkZdpQGO8NQ3pKWvbEuX179ulk n8qR6iBPi64malW3aETy4EvHnC2vrJL1ZABPGkv5vLmUzET8LVd1bdXwKfah0b0PdII2 64+jW6VK/22BzB09FtdI2oEqxGYK7UfenV1IM= X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=reject dis=none) header.from=fastly.com X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (1024-bit key, unprotected) header.d=fastly.com header.i=@fastly.com header.a=rsa-sha256 header.s=google header.b=in7c4nS+ Subject: Re: [Intel-wired-lan] [PATCH net-next v7 0/5] net: napi: add CPU affinity to napi->config X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" On Tue, Feb 04, 2025 at 03:06:17PM -0700, Ahmed Zaki wrote: > Drivers usually need to re-apply the user-set IRQ affinity to their IRQs > after reset. However, since there can be only one IRQ affinity notifier > for each IRQ, registering IRQ notifiers conflicts with the ARFS rmap > management in the core (which also registers separate IRQ affinity > notifiers). > > Move the IRQ affinity management to the napi struct. This way we can have > a unified IRQ notifier to re-apply the user-set affinity and also manage > the ARFS rmaps. The first patch moves the ARFS rmap management to CORE. > The second patch adds the IRQ affinity mask to napi_config and re-applies > the mask after reset. Patches 3-5 use the new API for bnxt, ice and idpf > drivers. If there's another version maybe adding this to netdevsim might be good? Was just thinking that if one day in the distant future netdev-genl was extended to expose the per NAPI affinity mask, a test could probably be written.