Skip to content

Allow disabling pause frames on panic

Florian Fainelli lkml netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesIn review
  2. v22 patches 4 repliesSuperseded
  3. v12 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- early feedback as to whether we can disable pause on panic
- correct documentation
- simplify network device list traversal
- only need to disable pause frame generation (TX)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: ethernet: Allow disabling pause on panicDocumentation/ABI/testing/sysfs-class-net include/linux/ethtool.h include/linux/netdevice.h +3 more+140 -13 replies
2/2net: bcmgenet: Add support for set_pauseparam_panicdrivers/net/ethernet/broadcom/genet/bcmgenet.c drivers/net/ethernet/broadcom/genet/bcmgenet.h drivers/net/ethernet/broadcom/genet/bcmmii.c+19 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH net-next v3 0/2] Allow disabling pause frames on panic

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 v3:

- early feedback as to whether we can disable pause on panic
- correct documentation
- simplify network device list traversal
- only need to disable pause frame generation (TX)

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                          | 39 +++++++++
 net/ethernet/Makefile                         |  3 +-
 net/ethernet/pause_panic.c                    | 79 +++++++++++++++++++
 9 files changed, 159 insertions(+), 1 deletion(-)
 create mode 100644 net/ethernet/pause_panic.c
Signature · 1 line
2.34.1