This is the final series moving the netconsole-specific functions out of
netpoll and into netconsole.
There is nothing else left except struct netpoll ->name and ->dev_mac
fields, which are netconsole-specific fields, but they are still in
netpoll structure (no other netpoll user uses these two fields).
netpoll is now left simpler and with a clearer role: an API that takes
an skb and transmits it. The device setup and the local/remote address
handling that only netconsole needs no longer sit in the generic netpoll
code, but in netconsole (which was the only user).
struct netpoll gets leaner too. The netconsole-only fields are gone, so
the other netpoll users (bonding, team, bridge, vlan, macvlan, dsa) no
longer carry fields they never touch. (except ->name and ->dev_mac)
Signed-off-by: Breno Leitao <leitao@debian.org>
---
Breno Leitao (9):
netpoll: export carrier_timeout via netpoll_get_carrier_timeout()
netpoll: export the netpoll_setup() helpers for netconsole
netconsole: take over netpoll_setup() from netpoll
netconsole: move netpoll_local_ip_unset() as netcons_local_ip_unset()
netconsole: move netpoll_take_ipv4() as netcons_take_ipv4()
netconsole: move netpoll_take_ipv6() as netcons_take_ipv6()
netconsole: move egress_dev() as netcons_egress_dev()
netconsole: move local_ip/remote_ip/ipv6 to netconsole_target
netconsole: move netpoll_wait_carrier() as netcons_wait_carrier()
drivers/net/netconsole.c | 301 +++++++++++++++++++++++++++++++++++++++--------
include/linux/netpoll.h | 5 +-
net/core/netpoll.c | 210 ++-------------------------------
3 files changed, 267 insertions(+), 249 deletions(-)
---
base-commit: 9eebf259d5352b87080d67758f483583d9e763d7
change-id: 20260721-netconsole_move_more_final-6ebdc01ecc19
Best regards,
--
Breno Leitao <leitao@debian.org>