Thread View: linux.kernel.netdev
2 messages
2 total messages
Started by Eric Dumazet
Tue, 27 Oct 2026 06:42
Re: [PATCH net 2/3] igc: prepare TSO and checksum offloads before TX timestamps
Author: Eric Dumazet
Date: Tue, 27 Oct 2026 06:42
Date: Tue, 27 Oct 2026 06:42
25 lines
10203 bytes
10203 bytes
Le lun. 26 oct. 2026 à 10:16, Paul Moses <p@1g4.org> a écrit :
>
> igc_request_tx_tstamp() takes an extra skb reference before transmit
> preparation. For GSO packets, igc_tso() calls skb_cow_head(), which can
> reach pskb_expand_head() with a shared skb when the header is cloned.
> Commit c7d8bc3dd511 ("net: skbuff: don't BUG() on bad arguments to
> pskb_expand_head()") replaced the BUG_ON() with -EINVAL, causing TSO
> preparation to fail and the packet to be dropped.
>
> For non-GSO packets with CHECKSUM_PARTIAL, igc_tx_csum() falls back to
> skb_checksum_help() for unsupported checksum offsets. This can also
> reach pskb_expand_head() through skb_ensure_writable(). igc_tx_csum()
> ignores the error, allowing transmission to continue without completing
> the checksum.
>
> Move TSO and checksum preparation before TX timestamp reservation so
> the extra skb reference cannot interfere with either operation.
>
> Fixes: 2c344ae24501 ("igc: Add support for TX timestamping")
> Fixes: f38b782dccab ("igc: Add support for TSO")
> Signed-off-by: Paul Moses <p@1g4.org>
> ---
Reviewed-by: Eric Dumazet <edumazet@kernel.org>
Re: [PATCH net 2/3] igc: prepare TSO and checksum offloads before TX timestamps
Author: "Kadosh, MoriyaX"
Date: Sat, 28 Nov 2026 20:58
Date: Sat, 28 Nov 2026 20:58
29 lines
21266 bytes
21266 bytes
On 27/10/2026 8:42, Eric Dumazet wrote:
> Le lun. 26 oct. 2026 à 10:16, Paul Moses <p@1g4.org> a écrit :
>>
>> igc_request_tx_tstamp() takes an extra skb reference before transmit
>> preparation. For GSO packets, igc_tso() calls skb_cow_head(), which can
>> reach pskb_expand_head() with a shared skb when the header is cloned.
>> Commit c7d8bc3dd511 ("net: skbuff: don't BUG() on bad arguments to
>> pskb_expand_head()") replaced the BUG_ON() with -EINVAL, causing TSO
>> preparation to fail and the packet to be dropped.
>>
>> For non-GSO packets with CHECKSUM_PARTIAL, igc_tx_csum() falls back to
>> skb_checksum_help() for unsupported checksum offsets. This can also
>> reach pskb_expand_head() through skb_ensure_writable(). igc_tx_csum()
>> ignores the error, allowing transmission to continue without completing
>> the checksum.
>>
>> Move TSO and checksum preparation before TX timestamp reservation so
>> the extra skb reference cannot interfere with either operation.
>>
>> Fixes: 2c344ae24501 ("igc: Add support for TX timestamping")
>> Fixes: f38b782dccab ("igc: Add support for TSO")
>> Signed-off-by: Paul Moses <p@1g4.org>
>> ---
>
> Reviewed-by: Eric Dumazet <edumazet@kernel.org>
Tested-by: Moriya Kadosh <moriyax.kadosh@intel.com>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads