netconsole: Add support for msgid in sysdata
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected] change-id 20250609-netconsole-msgid-b93c6f8e9c60Versions newest first
- v3 Latest5 patches 4 repliesApplied 5/5
- v25 patches 3 repliesSuperseded
- v15 patches 6 repliesSuperseded
Changes in v3 from the cover letter
- Add kdoc documentation for msgcounter.
- Link to v2: https://lore.kernel.org/r/[email protected]
Patches in v3 All 5 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | netconsole: introduce 'msgid' as a new sysdata fielddrivers/ | +4 | 0 replies | Applied |
| 2/5 | netconsole: implement configfs for msgid_enableddrivers/ | +49 | 0 replies | Applied |
| 3/5 | netconsole: append msgid to sysdatadrivers/ | +13 | 1 reply | Applied |
| 4/5 | selftests: netconsole: Add tests for 'msgid' feature in sysdatatools/ | +30 | 1 reply | Applied |
| 5/5 | docs: netconsole: document msgid featureDocumentation/ | +32 | 0 replies | Applied |
Reviews trailers per patch
4 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Breno Leitao |
|---|---|
| 1/5 | R-b |
| 2/5 | R-b |
| 3/5 | R-b |
| 4/5 | R-b |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next v3 0/5] netconsole: Add support for msgid in sysdata
This patch series introduces a new feature to netconsole which allows appending a message ID to the userdata dictionary.
If the msgid feature is enabled, the message ID is built from a per-target 32 bit counter that is incremented and appended to every message sent to the target.
Example::
echo 1 > "/sys/kernel/config/netconsole/cmdline0/userdata/msgid_enabled" echo "This is message #1" > /dev/kmsg
echo "This is message #2" > /dev/kmsg
13,434,54928466,-;This is message #1
msgid=1
13,435,54934019,-;This is message #2
msgid=2
This feature can be used by the target to detect if messages were dropped or reordered before reaching the target. This allows system administrators to assess the reliability of their netconsole pipeline and detect loss of messages due to network contention or temporary unavailability.
---
Changes in v3:
- Add kdoc documentation for msgcounter.
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Use wrapping_assign_add() to avoid warnings in UBSAN and friends.
- Improve documentation to clarify wrapping and distinguish msgid from sequnum.
- Rebase and fix conflict in prepare_extradata().
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Gustavo Luiz Duarte (5):
netconsole: introduce 'msgid' as a new sysdata field
netconsole: implement configfs for msgid_enabled
netconsole: append msgid to sysdata
selftests: netconsole: Add tests for 'msgid' feature in sysdata
docs: netconsole: document msgid feature
Documentation/networking/netconsole.rst | 32 +++++++++++ drivers/net/netconsole.c | 66 ++++++++++++++++++++++ .../selftests/drivers/net/netcons_sysdata.sh | 30 ++++++++++ 3 files changed, 128 insertions(+)
---
base-commit: 08207f42d3ffee43c97f16baf03d7426a3c353ca
change-id: 20250609-netconsole-msgid-b93c6f8e9c60
Best regards,
Signature · 1 line
Gustavo Luiz Duarte <[email protected]>