Skip to content

netconsole: Multiple targets and dynamic reconfigurability

Satyam Sharma lkml netdev 1 version In review

Get series with b4
b4 am 20070730024741.10828.48209.sendpatchset@enigma.security.iitk.ac.in

Versions newest first

  1. v3 Latest9 patches 4 repliesIn review

Changes in v3 from the cover letter

=================

* "enabled" must be defined outside #ifdef NETCONSOLE_DYNAMIC

* Some simple enhancements to documentation

* Drop the use of "unlikely" from a condition where I'd got the common case wrong

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9netconsole: Cleanups, codingstyle, prettyficationdrivers/net/netconsole.c+27 -280 replies
2/9netconsole: Remove bogus checkdrivers/net/netconsole.c+0 -30 replies
3/9netconsole: Simplify boot/module option setup logicdrivers/net/netconsole.c+14 -130 replies
4/9netconsole: Use netif_running() in write_msg()drivers/net/netconsole.c+9 -90 replies
5/9netconsole: Add some useful tips to documentationDocumentation/networking/netconsole.txt+25 -00 replies
6/9netconsole: Introduce netconsole_targetdrivers/net/netconsole.c+25 -110 replies
7/9netconsole: Introduce netconsole_netdev_notifierdrivers/net/netconsole.c+32 -00 replies
8/9netconsole: Support multiple logging targetsDocumentation/networking/netconsole.txt drivers/net/netconsole.c+137 -400 replies
9/9netconsole: Support dynamic reconfiguration using configfsDocumentation/networking/netconsole.txt drivers/net/Kconfig drivers/net/netconsole.c +2 more+683 -452 replies

Reviews trailers per patch

6 of 9 patches have a Reviewed-by or Acked-by.

PatchMatt MackallKeiichi Kii
1/9A-b
2/9A-b A-b
3/9A-b
4/9A-b
5/9A-b A-b
6/9
7/9
8/9
9/9A-b

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

Read the v3 thread

Cover letter [PATCH v3 -mm 0/9] netconsole: Multiple targets and dynamic reconfigurability

[0/9] netconsole: Multiple targets and dynamic reconfigurability

This is v3 of the patchset, the previous versions are available at:
http://lkml.org/lkml/2007/7/4/107
http://lkml.org/lkml/2007/7/10/78

Diffed against 2.6.23-rc1-git6 (6c8dca5d as of writing), but applies successfully to 2.6.23-rc1-mm1 as well.

Patches 1-5 are okay-to-apply to current mainline -git, I think.

Patches 6-9 introduce the new functionality and are requested for inclusion in -mm.

[1/9] netconsole: Cleanups, codingstyle, prettyfication [2/9] netconsole: Remove bogus check
[3/9] netconsole: Simplify boot/module option setup logic [4/9] netconsole: Use netif_running() in write_msg() [5/9] netconsole: Add some useful tips to documentation [6/9] netconsole: Introduce netconsole_target
[7/9] netconsole: Introduce netconsole_netdev_notifier [8/9] netconsole: Support multiple logging targets [9/9] netconsole: Support dynamic reconfiguration using configfs

Changes since v2:
=================

* "enabled" must be defined outside #ifdef NETCONSOLE_DYNAMIC

* Some simple enhancements to documentation

* Drop the use of "unlikely" from a condition where I'd got the common case wrong

About this patchset:
====================

What?

Support multiple remote logging targets in netconsole. Also, ability to dynamically add or remove targets or modify parameters (IP, port, remote MAC address) of targets at runtime, from userspace, using configfs.

Why?

Quoted 1 line

From Keiichi Kii's original post:

[...] current netconsole is not flexible. For example, if you want to change ip address for logging agent, in the case of built-in netconsole, you can't change config except for changing boot parameter and rebooting your system, or in the case of module netconsole, you need to remove it and reload with different parameters. [...] and we have been losing serial console port with PCs and Servers.

(... and especially laptops, I would add.)

Satyam