From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 796BF369992 for ; Tue, 21 Apr 2026 03:06:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776740791; cv=none; b=WQwlrwWbXMfU74f1uktE1zQ/hI1EVJsPQ4FiNQJL/+v9h20Qj6dXkV7I8YukI4UFhtvT+Xmku255Jk9wG70EA8nPdfaQp73M+NwmOnHpUUZvwI8K1P61odydxeTX5SVnGVwnyWqpAA4oKpIXn/Bf9Z1M4QOZOQ0Tf4re3Ps6Zws= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776740791; c=relaxed/simple; bh=G9rLZc4yI51EJ8pv1UnHTCwv9/p1NjVFbaeofm5LZWM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=A7tHr0yzEfM0EFOIXmF6LWJMxVrdIw9oquYSFX4cT0v4mNGRj/EQT3id5NIdSaYlvOKVFyWT7+olEV8xXh7es+IJfC6w7UUJB7zSljHBAet2477Zw335DFjoLDDLXKjNpMBogarOY5cgZ4yng/rYgOMpFsiLGzhqA/cWUG8BU80= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=X6WHZ9n/; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="X6WHZ9n/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1776740789; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2vSDcfbLcuN36y3FIAsgLPjIMhKRfkRmgcpEgQOy2ng=; b=X6WHZ9n/K0oPwNiBrBlB1k6OdNwKkM0iYsMMyYxfjkYeyaZzFD+QVHLMADprDATm5zVd5i A8ueURthCPPMlptRBu2uEeUfpLNeZ6Wsg0XNrMG+mCzwFeBef70ChlhFjhJV5NN9g1Mulb 99CFn+3xukAVFIuEw53EckofdAHUofc= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-84-FG7_zAziN9-KML86Xom_Fg-1; Mon, 20 Apr 2026 23:06:28 -0400 X-MC-Unique: FG7_zAziN9-KML86Xom_Fg-1 X-Mimecast-MFC-AGG-ID: FG7_zAziN9-KML86Xom_Fg_1776740783 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 1C59F19560BB; Tue, 21 Apr 2026 03:06:23 +0000 (UTC) Received: from llong-thinkpadp16vgen1.westford.csb (unknown [10.22.65.81]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 327A619560AB; Tue, 21 Apr 2026 03:06:16 +0000 (UTC) From: Waiman Long To: Tejun Heo , Johannes Weiner , =?UTF-8?q?Michal=20Koutn=C3=BD?= , Jonathan Corbet , Shuah Khan , Catalin Marinas , Will Deacon , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Guenter Roeck , Frederic Weisbecker , "Paul E. McKenney" , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Uladzislau Rezki , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Anna-Maria Behnsen , Ingo Molnar , Thomas Gleixner , Chen Ridong , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman Cc: cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hyperv@vger.kernel.org, linux-hwmon@vger.kernel.org, rcu@vger.kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, Costa Shulyupin , Qiliang Yuan , Waiman Long Subject: [PATCH 12/23] net: Use boot time housekeeping cpumask settings for now Date: Mon, 20 Apr 2026 23:03:40 -0400 Message-ID: <20260421030351.281436-13-longman@redhat.com> In-Reply-To: <20260421030351.281436-1-longman@redhat.com> References: <20260421030351.281436-1-longman@redhat.com> Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Checking of the housekeeping cpumasks was originally added to the store_rps_map() method in commit 07bbecb34106 ("net: Restrict receive packets queuing to housekeeping CPUs"). This store method ensures that only CPUs in housekeeping cpumask can be set in the "rps_cpus" of the individual network devices. Later, commit 662ff1aac854 ("net: Keep ignoring isolated cpuset change") replaced HK_TYPE_DOMAIN by HK_TYPE_DOMAIN_BOOT as HK_TYPE_DOMAIN cpumask was going to be made changeable at run time. Now we are going to make the nohz_full housekeeping cpumask to be changeable at run time too. Ideally we should update the housekeeping cpumasks changes should be propagated to the RPS cpumasks, but we need more thoughts to properly synchronize them. Ignore the run time housekeeping cpumask changes and only use the boot time "isolcpus=" and "nohz_full=" values for now. Signed-off-by: Waiman Long --- net/core/net-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index e430645748a7..9e666cc3b34c 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -1023,7 +1023,7 @@ int rps_cpumask_housekeeping(struct cpumask *mask) { if (!cpumask_empty(mask)) { cpumask_and(mask, mask, housekeeping_cpumask(HK_TYPE_DOMAIN_BOOT)); - cpumask_and(mask, mask, housekeeping_cpumask(HK_TYPE_WQ)); + cpumask_and(mask, mask, housekeeping_cpumask(HK_TYPE_KERNEL_NOISE_BOOT)); if (cpumask_empty(mask)) return -EINVAL; } -- 2.53.0