netpoll: move Ethernet setup to push_eth() helper
authorBreno Leitao <leitao@debian.org>
Wed, 2 Jul 2025 10:06:38 +0000 (03:06 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Jul 2025 01:52:56 +0000 (18:52 -0700)
commiteb4e773f13fb701e3dfc2059afd21a2dcdb2d0ba
treeca82df80d03da0fe5326f3f3f78ce086fa14aa81
parentcacfb1f4e9f6e9b1f15517841b0ef19ae83b38be
netpoll: move Ethernet setup to push_eth() helper

Refactor Ethernet header population into dedicated function, completing
the layered abstraction with:

- push_eth() for link layer
- push_udp() for transport
- push_ipv4()/push_ipv6() for network

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250702-netpoll_untagle_ip-v2-6-13cf3db24e2b@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/netpoll.c