Skip to content

netconsole: Add support for userdata release

Breno Leitao linux-doc linux-kselftest lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected] change-id 20250314-netcons_release-dc1f1f5ca0f7

Versions newest first

  1. v1 Latest6 patches 6 repliesApplied 6/6

Patches in v1 All 6 applied

#Subject and filesSizeRepliesApplied
1/6netconsole: introduce 'release' as a new sysdata fielddrivers/net/netconsole.c+4 -01 replyApplied
2/6netconsole: implement configfs for release_enableddrivers/net/netconsole.c+49 -01 replyApplied
3/6netconsole: add 'sysdata' suffix to related functionsdrivers/net/netconsole.c+4 -41 replyApplied
4/6netconsole: append release to sysdatadrivers/net/netconsole.c+10 -01 replyApplied
5/6selftests: netconsole: Add tests for 'release' feature in sysdatatools/testing/selftests/drivers/net/netcons_sysdata.sh+41 -31 replyApplied
6/6docs: netconsole: document release featureDocumentation/networking/netconsole.rst+25 -01 replyApplied

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchSimon Horman
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/6] netconsole: Add support for userdata release

I am submitting a series of patches that introduce a new feature for the netconsole subsystem, specifically the addition of the 'release' field to the sysdata structure. This feature allows the kernel release/version to be appended to the userdata dictionary in every message sent, enhancing the information available for debugging and monitoring purposes.

This complements the already supported release prepend feature, which was added some time ago. The release prepend appends the release information at the message header, which is not ideal for two reasons:

1) It is difficult to determine if a message includes this information, making it hard and resource-intensive to parse.

2) When a message is fragmented, the release information is appended to every message fragment, consuming valuable space in the packet.

The "release prepend" feature was created before the concept of userdata and sysdata. Now that this format has proven successful, we are implementing the release feature as part of this enhanced structure.

This patch series aims to improve the netconsole subsystem by providing a more efficient and user-friendly way to include kernel release information in messages. I believe these changes will significantly aid in system analysis and troubleshooting.

---
Breno Leitao (6):
netconsole: introduce 'release' as a new sysdata field
netconsole: implement configfs for release_enabled
netconsole: add 'sysdata' suffix to related functions
netconsole: append release to sysdata
selftests: netconsole: Add tests for 'release' feature in sysdata
docs: netconsole: document release feature

 Documentation/networking/netconsole.rst            | 25 ++++++++
 drivers/net/netconsole.c                           | 71 ++++++++++++++++++++--
 .../selftests/drivers/net/netcons_sysdata.sh       | 44 +++++++++++++-
 3 files changed, 133 insertions(+), 7 deletions(-)

---
base-commit: 941defcea7e11ad7ff8f0d4856716dd637d757dd
change-id: 20250314-netcons_release-dc1f1f5ca0f7

Best regards,

Signature · 1 line
Breno Leitao <[email protected]>