[PATCH net-next v2 0/2] Allow disabling pause frames on panic

From: Florian Fainelli

Date: Tue Nov 04 2025 - 17:21:41 EST


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