]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: use hardware tx timestamps for more than PTP
authorBert Kenward <bkenward@solarflare.com>
Thu, 7 Apr 2022 15:24:02 +0000 (16:24 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 8 Apr 2022 21:43:10 +0000 (14:43 -0700)
commitba08ec8c2b3d6080f7c36bd70dbf2441f7182f6b
treee998456ff4e469ee20993a5eba0b8697bf48327a
parentb5746e785c255275df54c702c9555e0346e878be
sfc: use hardware tx timestamps for more than PTP

The 8000 series and newer NICs all get hardware timestamps from the MAC
 and can provide timestamps on a normal TX queue, rather than via a slow
 path through the MC. As such we can use this path for any packet where a
 hardware timestamp is requested.
This also enables support for PTP over transports other than IPv4+UDP.

Signed-off-by: Bert Kenward <bkenward@solarflare.com>
Signed-off-by: Edward Cree <ecree@xilinx.com>
Link: https://lore.kernel.org/r/510652dc-54b4-0e11-657e-e37ee3ca26a9@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/tx.c