diff options
| author | Breno Leitao <[email protected]> | 2025-07-02 10:06:37 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-08 01:52:56 +0000 |
| commit | cacfb1f4e9f6e9b1f15517841b0ef19ae83b38be (patch) | |
| tree | c159ec299014e3161d2c364dd03270408d9a29db /drivers/net/ethernet/intel/igc | |
| parent | netpoll: factor out IPv4 header setup into push_ipv4() helper (diff) | |
| download | kernel-cacfb1f4e9f6e9b1f15517841b0ef19ae83b38be.tar.gz kernel-cacfb1f4e9f6e9b1f15517841b0ef19ae83b38be.zip | |
netpoll: factor out UDP header setup into push_udp() helper
Move UDP header construction from netpoll_send_udp() into a new
static helper function push_udp(). This completes the protocol
layer refactoring by:
1. Creating a dedicated helper for UDP header assembly
2. Removing UDP-specific logic from the main send function
3. 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 <[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
