]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netpoll: extract IPv4 address retrieval into helper function
authorBreno Leitao <leitao@debian.org>
Wed, 18 Jun 2025 09:32:46 +0000 (02:32 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Jun 2025 23:15:35 +0000 (16:15 -0700)
commit3699f992e8c22d3ce54d2c1a5774e2c49028f99c
treeb5dff51d9d9c8f8c2aff4a1f2a236cd58d1e9212
parent76d30b51e818064e02917ce6328fb2c8adce5c87
netpoll: extract IPv4 address retrieval into helper function

Move the IPv4 address retrieval logic from netpoll_setup() into a
separate netpoll_take_ipv4() function to improve code organization
and readability. This change consolidates the IPv4-specific logic
and error handling into a dedicated function while maintaining
the same functionality.

No functional changes.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250618-netpoll_ip_ref-v1-2-c2ac00fe558f@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/netpoll.c