]> www.infradead.org Git - users/willy/xarray.git/commit
ethtool: RX software timestamp for all
authorGal Pressman <gal@nvidia.com>
Sun, 1 Sep 2024 11:27:49 +0000 (14:27 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Sep 2024 22:17:47 +0000 (15:17 -0700)
commit12d337339d9fd71cf24b337727e51d5b3d52bcef
tree7ee41abd166e45546f1ccab6f6703f36d4c0ff67
parent3bbefbbd9e6c8ae80528ca14ac1258d657e5017e
ethtool: RX software timestamp for all

All devices support SOF_TIMESTAMPING_RX_SOFTWARE by virtue of
net_timestamp_check() being called in the device independent code.

Move the responsibility of reporting SOF_TIMESTAMPING_RX_SOFTWARE and
SOF_TIMESTAMPING_SOFTWARE, and setting PHC index to -1 to the core.
Device drivers no longer need to use them.

Suggested-by: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Link: https://lore.kernel.org/netdev/661550e348224_23a2b2294f7@willemb.c.googlers.com.notmuch/
Co-developed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Marc Kleine-Budde <mkl@pengutronix.de>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20240901112803.212753-2-gal@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/common.c