From nobody Thu Nov 28 16:31:11 2024 Received: from out-183.mta0.migadu.com (out-183.mta0.migadu.com [91.218.175.183]) (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 33C7E14D6F9 for ; Mon, 30 Sep 2024 15:40:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727710816; cv=none; b=fp5ITn/QNg8Nov0Yzy/Vp2fQQKJBpEXZ5e4gVl2OmqCjhx3EbVO+93ffYWrRMT0qjbqVwarMW86ccDLIh1ESuaCrVNu/ySSIxBlx05DxpYeDtdDyLaJkz4jT/7LkswT7df7Gzmqp0oJEqWeQpXGRldWmfFi4ubKSC2n57GyrIzc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727710816; c=relaxed/simple; bh=2ayb/aRy9s7UAywgsgl5kMfQtRv+G4n8lNByX7Z98og=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=WqQAGaK9ddqcYcIVBdgmTFr0u+IMlRgunnP/XGQSUC8/4mcW9jvlocuUza6PuAvhY82uKH/Y8uWJ2xeRTVZ+lEXyEyOgJN2fhzI40XSVNgrmppoygWAuFWn4LJvdiYlGjSAmw/G1HhtXn2oc5Oa6NCkign1wBdRdDr8rl9iKszE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=VCkay0Ig; arc=none smtp.client-ip=91.218.175.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="VCkay0Ig" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1727710813; 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; bh=b8c6Yzc2x/r/1MD6EJdj0wxYaOvsWglAbfqX6bif82g=; b=VCkay0Ig/C9lBrfjiXuIWC/ZuoPlsZhBjc4fY1ELvuhxAKhtzzENkVMXuoaVDFnLguoR4w El91CaWKeu7Gj66Wuls0WSM/Pod5p3o3grb9ruf1WsrUJI/9nA+RPQeqP2JcmPoNBXfOjl i93XFZI9rXpSjSn/kuR7uPwFTW3b+VE= From: Sean Anderson To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org Cc: Sebastian Andrzej Siewior , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Brett Creeley , Sean Anderson Subject: [PATCH net] doc: net: napi: Update documentation for napi_schedule_irqoff Date: Mon, 30 Sep 2024 11:39:54 -0400 Message-Id: <20240930153955.971657-1-sean.anderson@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Since commit 8380c81d5c4f ("net: Treat __napi_schedule_irqoff() as __napi_schedule() on PREEMPT_RT"), napi_schedule_irqoff will do the right thing if IRQs are threaded. Therefore, there is no need to use IRQF_NO_THREAD. Signed-off-by: Sean Anderson Reviewed-by: Bagas Sanjaya Reviewed-by: Sebastian Andrzej Siewior --- https://lore.kernel.org/netdev/20240913150954.2287196-1-sean.anderson@linux= .dev/ Documentation/networking/napi.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Documentation/networking/napi.rst b/Documentation/networking/n= api.rst index 7bf7b95c4f7a..dfa5d549be9c 100644 --- a/Documentation/networking/napi.rst +++ b/Documentation/networking/napi.rst @@ -144,9 +144,8 @@ IRQ should only be unmasked after a successful call to = napi_complete_done(): =20 napi_schedule_irqoff() is a variant of napi_schedule() which takes advanta= ge of guarantees given by being invoked in IRQ context (no need to -mask interrupts). Note that PREEMPT_RT forces all interrupts -to be threaded so the interrupt may need to be marked ``IRQF_NO_THREAD`` -to avoid issues on real-time kernel configurations. +mask interrupts). napi_schedule_irqoff() will fall back to napi_schedule()= if +IRQs are threaded (such as if ``PREEMPT_RT`` is enabled). =20 Instance to queue mapping ------------------------- --=20 2.35.1.1320.gc452695387.dirty