netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/2] Allow disabling pause frames on panic
@ 2025-11-04 22:13 Florian Fainelli
  2025-11-04 22:13 ` [PATCH net-next v2 1/2] net: ethernet: Allow disabling pause " Florian Fainelli
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Florian Fainelli @ 2025-11-04 22:13 UTC (permalink / raw)
  To: netdev
  Cc: bcm-kernel-feedback-list, Florian Fainelli, Doug Berger,
	Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Simon Horman, Stanislav Fomichev, Antoine Tenart,
	Kuniyuki Iwashima, Yajun Deng, open list

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-11-06 21:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-04 22:13 [PATCH net-next v2 0/2] Allow disabling pause frames on panic Florian Fainelli
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).