Thread (22 messages) 22 messages, 3 authors, 2025-09-03

Re: [PATCH 2/7] netpoll: move prepare skb functions to netconsole

From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date: 2025-09-02 22:44:19
Also in: linux-rt-devel, lkml

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>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help