Netdev List
 help / color / mirror / Atom feed
* [PATCH net 0/2] igb: Fix i210/i211 Rx timestamping loss and packet corruption
@ 2026-09-10 11:38 Pascal Kneuper
  2026-09-10 11:38 ` [PATCH net 1/2] igb: Preserve RXPBS.CFG_TS_EN in igb_setup_tx_mode Pascal Kneuper
  2026-09-10 11:38 ` [PATCH net 2/2] igb: Quiesce the receive path before enabling i210 Rx timestamping Pascal Kneuper
  0 siblings, 2 replies; 4+ messages in thread
From: Pascal Kneuper @ 2026-09-10 11:38 UTC (permalink / raw)
  To: Tony Nguyen, Przemek Kitszel, Andrew Lunn, David S . Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: Daniel Baldin, intel-wired-lan, netdev, linux-kernel,
	Pascal Kneuper

Hi!

This series fixes two issues with i210/i211 hardware Rx timestamping:

Patch 1 fixes a silent fallback to software timestamps. igb_setup_tx_mode()
unconditionally writes RXPBS, clearing CFG_TS_EN on every igb_up() (link
down/up, MTU change, or reset). Unlike other drivers (igc, i40e, ice),
hardware Rx timestamping fails to persist across link changes.

Patch 2 fixes frame corruption when enabling Rx timestamping at runtime.
RXPBS.CFG_TS_EN changes the packet buffer layout. Toggling it while Rx
queues are active creates a race where descriptor status and buffer layout
disagree for in-flight packets, corrupting Ethernet headers and dropping
frames silently. Fix by quiescing the Rx path around the change.

Patch 1 must precede patch 2, as the quiesce cycle in patch 2 invokes
igb_up() and would otherwise trigger the register clobber.

Best,
Pascal

Pascal Kneuper (2):
  igb: Preserve RXPBS.CFG_TS_EN in igb_setup_tx_mode
  igb: Quiesce the receive path before enabling i210 Rx timestamping

 drivers/net/ethernet/intel/igb/igb_main.c |  7 ++++++-
 drivers/net/ethernet/intel/igb/igb_ptp.c  | 17 +++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)

-- 
2.47.3


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-11 20:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-10 11:38 [PATCH net 0/2] igb: Fix i210/i211 Rx timestamping loss and packet corruption Pascal Kneuper
2026-09-10 11:38 ` [PATCH net 1/2] igb: Preserve RXPBS.CFG_TS_EN in igb_setup_tx_mode Pascal Kneuper
2026-09-11 20:58   ` Loktionov, Aleksandr
2026-09-10 11:38 ` [PATCH net 2/2] igb: Quiesce the receive path before enabling i210 Rx timestamping Pascal Kneuper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox