[PATCH v2] igc: fix invalid length and corrupted multi-segment mbufs

Bruce Richardson bruce.richardson at intel.com
Fri Nov 1 15:30:00 CET 2024


On Fri, Nov 01, 2024 at 02:57:26PM +0100, Martin Weiser wrote:
> 
> The issue only appeared with hardware-timestamping enabled
> (RTE_ETH_RX_OFFLOAD_TIMESTAMP).
> 
> The length of the prepended hardware timestamp was not subtracted from
> the data length so that received packets were 16 bytes longer than
> expected.
> 
> In scatter-gather mode only the first mbuf has a timestamp but the
> data offset of the follow-up mbufs was not adjusted accordingly.
> This caused 16 bytes of packet data to be missing between
> the segments.
> 

Fixes: 4f6fbbf6f17d ("net/igc: support IEEE 1588 PTP")


> Signed-off-by: Martin Weiser <martin.weiser at allegro-packets.com>
> ---
Acked-by: Bruce Richardson <bruce.richardson at intel.com>


More information about the dev mailing list