From: Florian Fainelli <florian.fainelli@broadcom.com>
To: netdev@vger.kernel.org
Cc: bcm-kernel-feedback-list@broadcom.com,
Florian Fainelli <florian.fainelli@broadcom.com>,
Doug Berger <opendmb@gmail.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
Stanislav Fomichev <sdf@fomichev.me>,
Antoine Tenart <atenart@kernel.org>,
Kuniyuki Iwashima <kuniyu@google.com>,
Yajun Deng <yajun.deng@linux.dev>,
linux-kernel@vger.kernel.org (open list)
Subject: [PATCH net-next v2 0/2] Allow disabling pause frames on panic
Date: Tue, 4 Nov 2025 14:13:46 -0800 [thread overview]
Message-ID: <20251104221348.4163417-1-florian.fainelli@broadcom.com> (raw)
This patch set allows disabling pause frame generation upon encountering
a kernel panic. This has proven to be helpful in lab environments where
devices are still being worked on, will panic for various reasons, and
will occasionally take down the entire Ethernet switch they are attached
to.
Changes in v2:
- introduce a dedicated callback that runs in panic context
Florian Fainelli (2):
net: ethernet: Allow disabling pause on panic
net: bcmgenet: Add support for set_pauseparam_panic
Documentation/ABI/testing/sysfs-class-net | 16 ++++
.../net/ethernet/broadcom/genet/bcmgenet.c | 8 ++
.../net/ethernet/broadcom/genet/bcmgenet.h | 1 +
drivers/net/ethernet/broadcom/genet/bcmmii.c | 10 +++
include/linux/ethtool.h | 3 +
include/linux/netdevice.h | 1 +
net/core/net-sysfs.c | 34 ++++++++
net/ethernet/Makefile | 3 +-
net/ethernet/pause_panic.c | 81 +++++++++++++++++++
9 files changed, 156 insertions(+), 1 deletion(-)
create mode 100644 net/ethernet/pause_panic.c
--
2.34.1
next reply other threads:[~2025-11-04 22:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-04 22:13 Florian Fainelli [this message]
2025-11-04 22:13 ` [PATCH net-next v2 1/2] net: ethernet: Allow disabling pause " Florian Fainelli
2025-11-04 22:44 ` Kuniyuki Iwashima
2025-11-06 21:27 ` Florian Fainelli
2025-11-04 22:13 ` [PATCH net-next v2 2/2] net: bcmgenet: Add support for set_pauseparam_panic Florian Fainelli
2025-11-04 23:57 ` [PATCH net-next v2 0/2] Allow disabling pause frames on panic Jakub Kicinski
2025-11-06 21:17 ` Florian Fainelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251104221348.4163417-1-florian.fainelli@broadcom.com \
--to=florian.fainelli@broadcom.com \
--cc=andrew+netdev@lunn.ch \
--cc=atenart@kernel.org \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=opendmb@gmail.com \
--cc=pabeni@redhat.com \
--cc=sdf@fomichev.me \
--cc=yajun.deng@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®