]> git.ipfire.org Git - thirdparty/linux.git/commit
net: ethernet: ti: am65-cpsw: Use also port number to identify timestamps
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 6 Mar 2026 14:44:39 +0000 (15:44 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Mar 2026 02:01:08 +0000 (19:01 -0700)
commita23c657e332f2feb5eb9c4a3e8371386aa7392a6
tree9ecf75989deca86eb846abd2d50f74c5981df4f9
parent47e8dbb6e763e5ccfed2ab4aa55cbb163382aec1
net: ethernet: ti: am65-cpsw: Use also port number to identify timestamps

The driver uses packet-type (RX/TX) PTP-message type and PTP-sequence
number to identify a matching timestamp packet for a skb. If the same
PTP packet arrives on both ports (as in a PRP environment) then it is
not obvious which event belongs to which skb.

The event contains also the port number on which it was received.
Instead of masking it out, use it for matching.

Tested-by: Chintan Vankar <c-vankar@ti.com>
Reviewed-by: Martin Kaistra <martin.kaistra@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://patch.msgid.link/20260306144439.cVwaaopR@linutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/am65-cpsw-nuss.c
drivers/net/ethernet/ti/am65-cpts.c
drivers/net/ethernet/ti/am65-cpts.h