OSDN Git Service

net: sparx5: Implement SIOCSHWTSTAMP and SIOCGHWTSTAMP
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Fri, 4 Mar 2022 11:08:57 +0000 (12:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Mar 2022 13:03:09 +0000 (13:03 +0000)
commit589a07b8eb49e5293c42cb40100eb9ee02731faf
tree782e2f5576b8891e3d173f973e1ef935c0fe800c
parent0933bd04047c3b96ba49545a8f91e7e6f8f666ff
net: sparx5: Implement SIOCSHWTSTAMP and SIOCGHWTSTAMP

Implement the ioctl callbacks SIOCSHWTSTAMP and SIOCGHWTSTAMP to allow
to configure the ports to enable/disable timestamping for TX. The RX
timestamping is always enabled. The HW is capable to run both 1-step
timestamping and 2-step timestamping.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/sparx5/sparx5_main.h
drivers/net/ethernet/microchip/sparx5/sparx5_netdev.c
drivers/net/ethernet/microchip/sparx5/sparx5_ptp.c