From: "Dahan, AvigailX" <avigailx.dahan@intel.com>
To: Paul Moses <p@1g4.org>, <intel-wired-lan@lists.osuosl.org>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<anthony.l.nguyen@intel.com>, <przemyslaw.kitszel@intel.com>,
<andrew+netdev@lunn.ch>, <davem@davemloft.net>,
<edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>,
<maciej.fijalkowski@intel.com>, <andre.guedes@intel.com>,
<vedang.patel@intel.com>, <jithu.joseph@intel.com>,
<richardcochran@gmail.com>, <tkusters@aweta.nl>,
<stable@vger.kernel.org>
Subject: Re: [PATCH net] igc: only strip RX timestamp header from first buffer
Date: Wed, 2 Sep 2026 11:44:25 +0300 [thread overview]
Message-ID: <d5ac4129-fbb1-44af-be31-41859587f705@intel.com> (raw)
In-Reply-To: <20260825235530.3278670-1-p@1g4.org>
[-- Attachment #1: Type: text/plain, Size: 2082 bytes --]
On 26/08/2026 2:55, Paul Moses wrote:
> igc_clean_rx_irq() strips IGC_TS_HDR_LEN whenever a descriptor reports
> IGC_RXDADV_STAT_TSIP. For multi-buffer packets, continuation descriptors
> retain TSIP even though the inline timestamp is present only in the first
> RX buffer.
>
> Subtracting the header length from each continuation buffer truncates
> jumbo packets by 16 bytes per continuation and leaves the packet length
> larger than the received data.
>
> Only consume the timestamp header when skb is NULL, which identifies the
> first buffer of a new packet. An skb carried in rx_ring->skb remains
> non-NULL when packet assembly resumes in a later NAPI poll.
>
> Link:https://lore.kernel.org/all/20260625-igb-rx-ts-fix-v3-1-99b3efa08dca@aweta.nl/
> Fixes: e1ed4f92a625 ("igc: Refactor Rx timestamp handling")
> Cc:stable@vger.kernel.org
> Signed-off-by: Paul Moses<p@1g4.org>
> ---
> #
> # REPRO
> #
> # Receiver: igc / enp1s0 / 10.0.5.175
> # Sender: RTL8125B / enP4p65s0 / 10.0.5.165
>
> # Both hosts
> sudo ip link set dev enp1s0 mtu 9000
> sudo ip link set dev enP4p65s0 mtu 9000
>
> # Baseline: RX timestamping off
> sudo hwstamp_ctl -i enp1s0 -t 0 -r 0
> ping -n -M do -c 5 -s 8972 10.0.5.175
> # 5/5 received
>
> # Enable RX timestamping only
> sudo hwstamp_ctl -i enp1s0 -t 0 -r 1
>
> # Receiver
> sudo timeout 20 tcpdump -ni enp1s0 -s 0 -w /tmp/igc-jumbo.pcap \
> 'icmp and host 10.0.5.165'
>
> # Sender
> ping -n -M do -c 5 -W 2 -s 8972 10.0.5.175
> # 0/5 received
>
> # Receiver
> sudo tcpdump -nn -e -vvv -r /tmp/igc-jumbo.pcap
> # length 8950
> # [total length 9000 > length 8936] (invalid)
> # wrong icmp cksum
>
> # Expected Ethernet length: 9014
> # Captured length: 8950
> # Loss: 64 = 4 continuation buffers * 16 bytes
>
> # Disable RX timestamping again
> sudo hwstamp_ctl -i enp1s0 -t 0 -r 0
> ping -n -M do -c 5 -s 8972 10.0.5.175
> # 5/5 received
>
> ---
>
> drivers/net/ethernet/intel/igc/igc_main.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
Tested-by: Avigail Dahan <avigailx.dahan@intel.com>
[-- Attachment #2: Type: text/html, Size: 2869 bytes --]
prev parent reply other threads:[~2026-09-02 8:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-25 23:55 [PATCH net] igc: only strip RX timestamp header from first buffer Paul Moses
2026-08-26 12:51 ` Loktionov, Aleksandr
2026-08-27 15:14 ` Maciej Fijalkowski
2026-09-02 8:44 ` Dahan, AvigailX [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d5ac4129-fbb1-44af-be31-41859587f705@intel.com \
--to=avigailx.dahan@intel.com \
--cc=andre.guedes@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jithu.joseph@intel.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maciej.fijalkowski@intel.com \
--cc=netdev@vger.kernel.org \
--cc=p@1g4.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=richardcochran@gmail.com \
--cc=stable@vger.kernel.org \
--cc=tkusters@aweta.nl \
--cc=vedang.patel@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox