diff options
| author | Breno Leitao <[email protected]> | 2025-07-02 10:06:36 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-08 01:52:56 +0000 |
| commit | 8c27639dbe549a58415c83a078c28e6b00c73f0f (patch) | |
| tree | 6b422ad9654902c9ab5234a24222da408459754d /drivers/net/ethernet/intel/igc | |
| parent | netpoll: factor out IPv6 header setup into push_ipv6() helper (diff) | |
| download | kernel-8c27639dbe549a58415c83a078c28e6b00c73f0f.tar.gz kernel-8c27639dbe549a58415c83a078c28e6b00c73f0f.zip | |
netpoll: factor out IPv4 header setup into push_ipv4() helper
Move IPv4 header construction from netpoll_send_udp() into a new
static helper function push_ipv4(). This completes the refactoring
started with IPv6 header handling, creating symmetric helper functions
for both IP versions.
Changes include:
1. Extracting IPv4 header setup logic into push_ipv4()
2. Replacing inline IPv4 code with helper call
3. Moving eth assignment after helper calls for consistency
The refactoring reduces code duplication and improves maintainability
by isolating IP version-specific logic.
Signed-off-by: Breno Leitao <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc')
0 files changed, 0 insertions, 0 deletions
