Remember to label the target branch: [PATCH net-next 1/7]
Breno Leitao wrote:
Split the netpoll_send_udp() function into two separate operations:
netpoll_prepare_skb() for message preparation and netpoll_send_skb()
for transmission.
This improves separation of concerns. SKB building logic is now isolated
from the actual network transmission, improving code modularity and
testability.
Why?
The separation of SKB preparation and transmission operations enables
more granular locking strategies. The netconsole buffer requires lock
protection during packet construction, but the transmission phase can
proceed without holding the same lock.
Also, this makes netpoll only reponsible for handling SKB.
netpoll_prepare_skb() is now exported, but, in the upcoming change, it
will be moved to netconsole, and become static.
Signed-off-by: Breno Leitao <leitao@debian.org>
aside from the above,
Reviewed-by: Willem de Bruijn <willemb@google.com>