Skip to content

netpoll: finish untangling netconsole from netpoll

Breno Leitao 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 20260721-netconsole_move_more_final-6ebdc01ecc19

Versions newest first

  1. v1 Latest9 patches 11 repliesApplied 9/9

Patches in v1 All 9 applied

#Subject and filesSizeRepliesApplied
1/9netpoll: export carrier_timeout via netpoll_get_carrier_timeout()include/linux/netpoll.h net/core/netpoll.c+15 -41 replyApplied
2/9netpoll: export the netpoll_setup() helpers for netconsoleinclude/linux/netpoll.h net/core/netpoll.c+15 -51 replyApplied
3/9netconsole: take over netpoll_setup() from netpolldrivers/net/netconsole.c include/linux/netpoll.h net/core/netpoll.c+83 -851 replyApplied
4/9netconsole: move netpoll_local_ip_unset() as netcons_local_ip_unset()drivers/net/netconsole.c include/linux/netpoll.h net/core/netpoll.c+18 -203 repliesApplied
5/9netconsole: move netpoll_take_ipv4() as netcons_take_ipv4()drivers/net/netconsole.c include/linux/netpoll.h net/core/netpoll.c+31 -321 replyApplied
6/9netconsole: move netpoll_take_ipv6() as netcons_take_ipv6()drivers/net/netconsole.c include/linux/netpoll.h net/core/netpoll.c+43 -441 replyApplied
7/9netconsole: move egress_dev() as netcons_egress_dev()drivers/net/netconsole.c include/linux/netpoll.h net/core/netpoll.c+23 -251 replyApplied
8/9netconsole: move local_ip/remote_ip/ipv6 to netconsole_targetdrivers/net/netconsole.c include/linux/netpoll.h+76 -701 replyApplied
9/9netconsole: move netpoll_wait_carrier() as netcons_wait_carrier()drivers/net/netconsole.c include/linux/netpoll.h net/core/netpoll.c+16 -171 replyApplied

Reviews trailers per patch

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

PatchGustavo Luiz Duarte
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9R-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/9] netpoll: finish untangling netconsole from netpoll

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)

---
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,

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