igc: skip RX timestamp header for frame preemption verification
Subsystems (3)
PATCH 1/1 igc: skip RX timestamp header for frame preemption verification
When RX hardware timestamping is enabled, a 16-byte inline timestamp header is added to the start of the packet buffer, causing FPE handshake verification to fail.
Because an incorrect packet buffer is passed to igc_fpe_handle_mpacket(), the mem_is_zero() check inspects the timestamp metadata instead of the actual mPacket payload. As a result, valid Verify/Response mPackets can be missed when inline RX timestamps are present.
Pass pktbuf + pkt_offset to igc_fpe_handle_mpacket() so it inspects the actual mPacket payload instead of the timestamp header.
--- drivers/net/ethernet/intel/igc/igc_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/igc/igc_main.c +1 -1
@@ -2649,7 +2649,7 @@ static int igc_clean_rx_irq(struct igc_q_vector *q_vector, const int budget) }if (igc_fpe_is_pmac_enabled (adapter) && -igc_fpe_handle_mpacket (adapter, rx_desc, size, pktbuf)) { +igc_fpe_handle_mpacket (adapter, rx_desc, size, pktbuf + pkt_offset)) {/* Advance the ring next-to-clean */ igc_is_non_eop (rx_ring, rx_desc); cleaned_count++;
Signature · 1 line
2.43.0
Quoted 61 lines
-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of KhaiWenTan
Sent: Friday, April 24, 2026 9:59 AM
To: Nguyen, Anthony L <[email protected]>; Kitszel, Przemyslaw <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Choong, Chwee Lin <[email protected]>; [email protected]; Gomes, Vinicius <[email protected]>
Cc: [email protected]; intel-wired- [email protected]; [email protected]; linux- [email protected]; Tan, Khai Wen <[email protected]>; Looi, Hong Aun <[email protected]>; Abdul Rahim, Faizal <[email protected]>; KhaiWenTan <[email protected]>
Subject: [Intel-wired-lan] [PATCH iwl-net 1/1] igc: skip RX timestamp header for frame preemption verificationWhen RX hardware timestamping is enabled, a 16-byte inline timestamp header is added to the start of the packet buffer, causing FPE handshake verification to fail.
Because an incorrect packet buffer is passed to
igc_fpe_handle_mpacket(), themem_is_zero()check inspects the timestamp metadata instead of the actual mPacket payload. As a result, valid Verify/Response mPackets can be missed when inline RX timestamps are present.Pass pktbuf +
pkt_offsettoigc_fpe_handle_mpacket()so it inspects the actual mPacket payload instead of the timestamp header.Fixes 5422570c0010 ("igc: add support for frame preemptionverification")
Co-developed-by Faizal Rahim <[email protected]>Signed-off-by Faizal Rahim <[email protected]>Signed-off-by KhaiWenTan <[email protected]>--- drivers/net/ethernet/intel/igc/igc_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/ethernet/intel/igc/igc_main.c +1
-1@@ -2649,7 +2649,7 @@ static int igc_clean_rx_irq(struct igc_q_vector *q_vector, const int budget) }if (igc_fpe_is_pmac_enabled (adapter) && -igc_fpe_handle_mpacket (adapter, rx_desc, size, pktbuf)) { + igc_fpe_handle_mpacket(adapter, rx_desc, size,pktbuf +
drivers/net/ethernet/intel/igc/igc_main.c +1
-1+pkt_offset)) {/* Advance the ring next-to-clean */ igc_is_non_eop (rx_ring, rx_desc); cleaned_count++; --
Quoted 1 line
2.43.0