Article View: linux.kernel.netdev
Article #18585Re: [PATCH net v2 2/3] igb: link queues to NAPIs under RTNL after runtime resume
From: Joe Damato
Date: Wed, 18 Nov 2026 15:05
Date: Wed, 18 Nov 2026 15:05
33 lines
13362 bytes
13362 bytes
On Mon, Nov 16, 2026 at 04:30:38PM +0100, Antonio Quartulli wrote:
> __igb_open() links queues to NAPIs with netif_queue_set_napi(), which
> requires RTNL, but RTNL isn't held when resuming from runtime suspend:
> this triggers "RTNL: assertion failed".
>
> Don't link them in __igb_open() when resuming: do it right away on
> system resume (RTNL held) and from a work item taking RTNL on runtime
> resume. The links can't be kept across a suspend, because
> __igb_shutdown() frees the q_vectors. These are only freed under RTNL
> with __IGB_DOWN set, so the work item checks __IGB_DOWN under RTNL.
>
> Tested with the 82576 emulated by QEMU.
>
> Fixes: b75a1dea500f ("igb: Link queues to NAPI instances")
> Cc: stable@vger.kernel.org # 6.16+
> Closes: https://bugzilla.ipfire.org/show_bug.cgi?id=13562
> Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
> ---
> v2: no code changes; mention the tested hardware.
>
> Note: igc may have the same issue: __igc_open() also links queues to NAPIs
> (igc_set_queue_napi()) on the RTNL-less runtime resume path. We didn't
> have igc hardware to test a fix with, so no igc patch is sent for now.
I have an igc I can test on if you want to send me the script you used to test
this. Feel free to message me off list if you like.
> drivers/net/ethernet/intel/igb/igb.h | 1 +
> drivers/net/ethernet/intel/igb/igb_main.c | 38 +++++++++++++++++++++--
> 2 files changed, 37 insertions(+), 2 deletions(-)
Reviewed-by: Joe Damato <joe@dama.to>
Technical Details
Message-ID:
<av2+uVOytr5BDs5P@devvm20253.cco0.facebook.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366215-linux-kernel-netdev=dewy.ruReferences:
<20261116153041.3002666-1-antonio@mandelbit.com> <20261116153041.3002666-3-antonio@mandelbit.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366215-linux-kernel-netdev=dewy.ru
From: joe@dama.to (Joe Damato)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2 2/3] igb: link queues to NAPIs under RTNL after
runtime resume
Date: Wed, 18 Nov 2026 07:05:29 -0800
Organization: Usenet Network
Message-ID: <av2+uVOytr5BDs5P@devvm20253.cco0.facebook.com>
References: <20261116153041.3002666-1-antonio@mandelbit.com>
<20261116153041.3002666-3-antonio@mandelbit.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
logging-data="2624360"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:NS1xgxtfBA54pY4/LO4qqA7GwL4= sha256:flLjerXOXKFJHoRshn7Ua6YTKUlXI3wJiiDh1PYcY5s=
sha1:ZWLOjs9biCdxwxhwyvunBcBsAm0= sha256:snRxwYZVAHy4T71oUywpXsnvwy+lgEJiLrFSAOspnYA=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id A76571152E8; Wed, 18 Nov 2026 18:06:38 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.951
X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=dama-to.20260707.gappssmtp.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id DoA8BI8Z0F8f;
Wed, 18 Nov 2026 18:06:34 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-366215-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=dama.to
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id AC4171152EB; Wed, 18 Nov 2026 18:06:24 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 7FDF43A906; Wed, 18 Nov 2026 15:05:39 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795014339;
b=GuwRkBAvcmEvC6DeBg3ka6q1D6sh9l5b8L2nJiuqqP5G70/0Z2YUAqB8VGGec3zFOIkJ
oApcKq357h8edc/4FK38wmY0zDlbNITGP0Bvu4/lhA33WYz4+g0hTY7GA7+guiX6DaLBl
XPdxI88DVJX3BNWhAQgfV7rQ9dAlTINL8Lj6CyzJS4Xh48wMLXorzdLyaV89n0eNgb8hf
mYIRxDKutIEpxtfvI/GIgLoaQiptFpEQZKq6wMPa4NpPhxyWnCdibVPu7MEVC6nlKSvIW
fccagktWyay/eFF0yqRAJpP1YPsA0OOkUIDScri0LUyh8EdL9AaaNdtv26T6Fzn//PA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795014339;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:Date:From:To:Cc:Subject:Message-ID:
Mail-Followup-To:References:X-Mailing-List:List-Id:List-Post:
List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
bh=uHGZ+xOdJx3Zm8UTHiozAvdnroVoplilsdHtzudcbVI=;
b=GU5+bzaG8fQEin1pr7vw6WgA6akNsxyoD6Ox9mDvircagpFrPyuO9/lSg7jxsxnMFv5l
aDHSwCUENMvmgc0ZnUzRvxv4HwNRosWaHr9UyDNSuQPPCt2ov+cgxxHO8VUP64gh/r2Bo
eWZ9zeM91IORyV21HOg78xoXja1+OZ3MtJfVQmcPSmwBu6CupVIkOudYU97rtzB9Ufj57
IE8b/45vikKvms1PPILn6X10dwsUmNz8qjO9HwLyPQy8g9W3jDWHe0cYr0H+kzeQqoAEe
34dEQ2zKp/lSCfOrn2xgplN9M7lgLVJkXSJoT2gOx0D+kEC5XTfjIr/ZqLdy9n5h5Jg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=dama-to.20260707.gappssmtp.com header.i=@dama-to.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=QXFVnjhG;
dmarc=none header.from=dama.to;
spf=none smtp.mailfrom=dama.to;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 562E3606A330;
Wed, 18 Nov 2026 15:05:39 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=dama-to.20260707.gappssmtp.com header.i=@dama-to.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=QXFVnjhG
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.177
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795014333;
b=mdkVKr++Yp/Y05KT/ydgiLmslkeFcp9Ch8oTNvRZkCJwmAQgqjAAH4C2kSQrriWqHZih
FoT8IW0n9xY73iquF5PbQ/GK0Pfhnk+vPS4mFPEQbLBdqr+eJyoB65nKgUkvAHvTztmvp
DDBWfhv6Z/rHq3wN8yRij4q1MjPoc5Yi0Q3i4bwQp90JvZknOVsFfPKJ6SK/1lGBVPVZk
oYZvOdMb6g4xeuT3SpORYGSV3lJ3Pk70YdOERxTdvGUtZSJ9zM102AD3kOyAjSnKhG2cz
2c98I0oEJdLZ5Bpa/ilvh0uDy1LS3AeqxocVAl2Ol2QTFNtXl7w5vHog2VNNjX8ATaA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795014333;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To:References:
MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
bh=uHGZ+xOdJx3Zm8UTHiozAvdnroVoplilsdHtzudcbVI=;
b=u6FCHPvX09l1kQTytRdoqYC1qzLJ9jC06ub8yJXYXtQn9kIx7i+a+sYU1G+vzhqLCBPu
W9BlfnGYgw7giOk0ygwDeHETv5d2j4KGseFEIlF+N5zVyKyQdXO3t36rpe6kUoOC+wMV8
1JY6L6kwuxZmnpDLmGAgOCXw7K07R5TmoWquDktgbCpP2fCVeXJ4q9VtSnSofOXkh/rsg
LkGGU3MqZU/lwMCj5h/CaO72JZs8bF1Q+rN3CXIRcaItVbIWVqBvNsiK1cDYno+NSX0oZ
DtrtT2WYetehzwC5ZL/8RRNajLpUMNQ2ETszCfNsJh0TlJRo5Lwu7ecASWVNm9Craxg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none header.from=dama.to;
spf=none smtp.mailfrom=dama.to;
dkim=pass header.d=dama-to.20260707.gappssmtp.com header.i=@dama-to.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=QXFVnjhG;
arc=none smtp.remote-ip=209.85.214.177
X-Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id AEDAD606A331
for <netdev@vger.kernel.org>; Wed, 18 Nov 2026 15:05:31 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AEDAD606A331
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dama.to
X-Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=dama.to
X-Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-2e99b1e5b4cso8253025ad.0
for <netdev@vger.kernel.org>; Wed, 18 Nov 2026 07:05:31 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=dama-to.20260707.gappssmtp.com; s=20260707; t=1795014331; x=1795619131; darn=vger.kernel.org;
h=in-reply-to:content-disposition:content-type:mime-version
:references:mail-followup-to:message-id:subject:cc:to:from:date:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=uHGZ+xOdJx3Zm8UTHiozAvdnroVoplilsdHtzudcbVI=;
b=QXFVnjhGcWNcZVxAiqFpRMw2oMh2dieUZe7T/JOKGprkANq54ojUus6S8PyO67nOy9
7UlTC39NR3W/6RA7E9c2wfG0J/51zw50s+bzNZQTCmKm6ZUmT/NgA+NdNMD2Ic1hJYi5
0OlR6ykWIKzo5LTIh1NF+fqBL3e7M4NH30jvRTIhNCcBtmGbxmBLqqXFjFvyhLvrTw3s
NeR7MtbWNK/lNqEVwgeZpoy/YIKH9C2rBf2lZ6NfRkjJbHNpTYBoQ6t2Mqu9aIHaaITS
Wxop2OBj+7YXmP7hqs14tCALq2glB4GmongionzM4ZGaty18pR2LO4s5XD+nT2UwZK46
9rxw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795014331; x=1795619131;
h=in-reply-to:content-disposition:content-type:mime-version
:references:mail-followup-to:message-id:subject:cc:to:from:date
:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to:content-type;
bh=uHGZ+xOdJx3Zm8UTHiozAvdnroVoplilsdHtzudcbVI=;
b=MssgnMZi30KE4cosP9ZYK3Gh8ujhz+zhgRNLVOUMsvNH93SgzBmHH0xvgpvpk1KShq
l/ZJoV1Hj7mbTqUKkudln/kf3IHlvkNAqlppWJnGwAoIdG+841YgtrAhvHD9V8YZW/iE
0+zE/V7RnLYPAtpFAm9v8229h0M87nEJB4IhtwcIoSzjEOhtghVdyVP0MNfwKxh8JLSR
TmGE2DgMuhQ6Sx/wpDUbh+QUoDkkQ3F2749jx5rMxzaLdgH6XFU0Mnj+snYrgyQFePUp
PT26k+RJDaUEJ0Msmn9YcipCOYtakfGTSckcHzpX4yXIm/KGu2A4upDzFeRsyPvJW7Po
Jvdg==
X-Forwarded-Encrypted: i=1; AL+hErE6UIT6Xme045PFBKVY1cpLlL+mjpxsf/9M7Gop2ZjbljPLP1L+biQoYOor8Ap/iQuJOOm5ns8=@vger.kernel.org
X-Gm-Message-State: APuU4Z/yx5uMhrUYu2QQiqt8nZkP4f+vy57PsRzai5kEEI33plLGzzlm
DpH0o3TMblBR7ZKIKJ32eTZIHDSG21ZQ8WXHjbXelyCYrWpxVLiLJgLXtDcJLJc3ZCU=
X-Gm-Gg: AZFdTZdLbm8mYkSNAEjRXD4Zcn2ApXeOlAnqZXoAM1e4vX5LAhVsVi12f+Gj1yJ5Pj3
KIrCDC3PjctL6ZVKphQ+883Esbo+rghCGu5Z3I9Z2skr8qlzirYSb06gs4iJUGnYV7K2DFwvfqX
37I623qRZwmh6a99uxboR42EKj2hOokftyPUPb1WNgumJKjqu1CIdOkAe1B9BvMQ0rOpmEH9LJQ
edgUx1wOBwrLwW7usfFoAEFQtl0rYDXQxFb8ccyTEjUZ15iZQ3zfxtCoI8AntbNoILKGEfJvxLm
GpUcqozPvYiEigGG2/pIBdG+uxVgJtX2IYEZm/4doWGRtboM0B08midmaxoL435u3xQSru9G4QG
YDsB6Qh2t3XGkvU2deoXWUE7Vay3pXBk4WcGLTMX8CjIKkZqFrID0177bPb1VBRzeLtUhad9lLV
GpDdCShF7Ixjr95vXR3vHp5TbZnVv8bUo45KztyG3jezHN68z1OVOK2xzADgSi/ygGTZ7hn1Z25
6P0Tyi0eDgRTtUTF6izuUPjwAI3mQ1m5x4SOldlBZt12gvZ7pbn7wMI6CSu/NpGzqchozHjf75h
Zl90h6keUTGkYLbTGcZ4+KIfD6XD0wxS7bS65X4WASAVH7Y1niijuKuRA/AHUR0d
X-Received: by 2002:a17:902:ce10:b0:2ed:2104:9a6f with SMTP id d9443c01a7336-2eff73f1e64mr28760675ad.22.1795014330948;
Wed, 18 Nov 2026 07:05:30 -0800 (PST)
X-Received: from localhost ([2a03:2880:2ff:46::])
by smtp.gmail.com with ESMTPSA id d9443c01a7336-2eff6115f28sm15446135ad.19.2026.11.18.07.05.30
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 18 Nov 2026 07:05:30 -0800 (PST)
X-Cc: intel-wired-lan@lists.osuosl.org,
Tony Nguyen <anthony.l.nguyen@intel.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Kurt Kanzenbach <kurt@linutronix.de>, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, stable@vger.kernel.org
X-Mail-Followup-To: Joe Damato <joe@dama.to>,
Antonio Quartulli <antonio@mandelbit.com>,
intel-wired-lan@lists.osuosl.org,
Tony Nguyen <anthony.l.nguyen@intel.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Kurt Kanzenbach <kurt@linutronix.de>, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, stable@vger.kernel.org
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261116153041.3002666-3-antonio@mandelbit.com>