On Wed, Jul 02, 2025 at 03:06:37AM -0700, Breno Leitao wrote:
Move UDP header construction from netpoll_send_udp() into a new static helper function push_udp(). This completes the protocol layer refactoring by:
- Creating a dedicated helper for UDP header assembly
- Removing UDP-specific logic from the main send function
- Establishing a consistent pattern with existing IPv4/IPv6 helpers:
- push_udp()
- push_ipv4()
- push_ipv6()
The change improves code organization and maintains the encapsulation pattern established in previous refactorings.
Signed-off-by: Breno Leitao leitao@debian.org
Reviewed-by: Simon Horman horms@kernel.org