Breno Leitao wrote:
Move the UDP packet preparation logic from netpoll core to netconsole
driver, consolidating network console-specific functionality.
Changes include:
- Move netpoll_prepare_skb() from net/core/netpoll.c to netconsole.c
- Move all UDP/IP header construction helpers (push_udp, push_ipv4,
push_ipv6, push_eth, netpoll_udp_checksum) to netconsole.c
- Add necessary network header includes to netconsole.c
- Export find_skb() from netpoll core to allow netconsole access
* This is temporary, given that skb pool management is a netconsole
thing. This will be removed in the upcoming change in this patchset.
With this in mind, netconsole become another usual netpoll user, by
calling it with SKBs instead of msgs and len.
Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Willem de Bruijn <willemb@google.com>