diff options
| author | Song Yoong Siang <[email protected]> | 2025-02-16 09:34:29 +0000 |
|---|---|---|
| committer | Martin KaFai Lau <[email protected]> | 2025-02-20 23:13:46 +0000 |
| commit | f9b53bb13923f0a6ed2e784a35301cfb4c28f4f4 (patch) | |
| tree | 7a051c42835d826c75637d9e90071eb0f2018fee /net/ipv4/tcp_input.c | |
| parent | net: stmmac: Add launch time support to XDP ZC (diff) | |
| download | kernel-f9b53bb13923f0a6ed2e784a35301cfb4c28f4f4.tar.gz kernel-f9b53bb13923f0a6ed2e784a35301cfb4c28f4f4.zip | |
igc: Refactor empty frame insertion for launch time support
Refactor the code for inserting an empty frame into a new function
igc_insert_empty_frame(). This change extracts the logic for inserting
an empty packet from igc_xmit_frame_ring() into a separate function,
allowing it to be reused in future implementations, such as the XDP
zero copy transmit function.
Remove the igc_desc_unused() checking in igc_init_tx_empty_descriptor()
because the number of descriptors needed is guaranteed.
Ensure that skb allocation and DMA mapping work for the empty frame,
before proceeding to fill in igc_tx_buffer info, context descriptor,
and data descriptor.
Rate limit the error messages for skb allocation and DMA mapping failures.
Update the comment to indicate that the 2 descriptors needed by the empty
frame are already taken into consideration in igc_xmit_frame_ring().
Handle the case where the insertion of an empty frame fails and explain
the reason behind this handling.
Signed-off-by: Song Yoong Siang <[email protected]>
Signed-off-by: Martin KaFai Lau <[email protected]>
Reviewed-by: Faizal Rahim <[email protected]>
Reviewed-by: Maciej Fijalkowski <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions
