Skip to content

igb: Fix i210/i211 Rx timestamping loss and packet corruption

Pascal Kneuper intel-wired-lan lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2igb: Preserve RXPBS.CFG_TS_EN in igb_setup_tx_modedrivers/net/ethernet/intel/igb/igb_main.c+6 -12 replies
2/2igb: Quiesce the receive path before enabling i210 Rx timestampingdrivers/net/ethernet/intel/igb/igb_ptp.c+17 -01 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchAleksandr LoktionovAlexander Nowlin
1/2R-b T-b
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/2] igb: Fix i210/i211 Rx timestamping loss and packet corruption

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(-)
Signature · 1 line
2.47.3