[NET] netconsole: Introduce netconsole_target
authorSatyam Sharma <satyam@infradead.org>
Fri, 10 Aug 2007 22:32:14 +0000 (15:32 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:48:04 +0000 (16:48 -0700)
commitdf180e369cf54a8ef8440667ab1d13d452fc7215
tree5079a4b016af25f4fb2fcac4b014af8d8d891173
parent8d4ef88b5df1afe097e38aef8cab2ed35ca141ea
[NET] netconsole: Introduce netconsole_target

Based upon initial work by Keiichi Kii <k-keiichi@bx.jp.nec.com>.

Introduce a wrapper structure over netpoll to represent logging targets
configured in netconsole.  This will get extended with other members in
further patches.

This is done independent of the (to-be-introduced) NETCONSOLE_DYNAMIC config
option so that we're able to drastically cut down on the #ifdef complexity of
final netconsole.c.  Also, struct netconsole_target would be required for
multiple targets support also, and not just dynamic reconfigurability.

Signed-off-by: Satyam Sharma <satyam@infradead.org>
Signed-off-by: Keiichi Kii <k-keiichi@bx.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netconsole.c