mirror-linux/drivers/net/dsa/microchip
Christian Eggers 90188fff65 net: dsa: microchip: ptp: add packet reception timestamping
Rx Timestamping is done through 4 additional bytes in tail tag.
Whenever the ptp packet is received, the 4 byte hardware time stamped
value is added before 1 byte tail tag. Also, bit 7 in tail tag indicates
it as PTP frame. This 4 byte value is extracted from the tail tag and
reconstructed to absolute time and assigned to skb hwtstamp.
If the packet received in PDelay_Resp, then partial ingress timestamp
is subtracted from the correction field. Since user space tools expects
to be done in hardware.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Co-developed-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-01-13 08:40:41 +00:00
..
Kconfig net: dsa: microchip: ptp: add the posix clock support 2023-01-13 08:40:40 +00:00
Makefile net: dsa: microchip: ptp: add the posix clock support 2023-01-13 08:40:40 +00:00
ksz8.h net: dsa: microchip: ksz8: add MTU configuration support 2022-12-07 11:57:58 +01:00
ksz8795.c net: dsa: microchip: ksz8: move all DSA configurations to one location 2022-12-07 11:57:58 +01:00
ksz8795_reg.h net: dsa: microchip: ksz8: add MTU configuration support 2022-12-07 11:57:58 +01:00
ksz8863_smi.c net: dsa: microchip: add dev_err_probe in probe functions 2022-11-09 13:06:01 +00:00
ksz9477.c net: dsa: microchip: enable MTU normalization for KSZ8795 and KSZ9477 compatible switches 2022-12-07 11:57:58 +01:00
ksz9477.h net: dsa: microchip: move max mtu to one location 2022-12-07 11:57:58 +01:00
ksz9477_i2c.c net: dsa: microchip: ksz9477: Convert to i2c's .probe_new() 2022-11-23 12:50:06 -08:00
ksz9477_reg.h net: dsa: microchip: move max mtu to one location 2022-12-07 11:57:58 +01:00
ksz_common.c net: dsa: microchip: ptp: add packet reception timestamping 2023-01-13 08:40:41 +00:00
ksz_common.h net: dsa: microchip: ptp: enable interrupt for timestamping 2023-01-13 08:40:41 +00:00
ksz_ptp.c net: dsa: microchip: ptp: add packet reception timestamping 2023-01-13 08:40:41 +00:00
ksz_ptp.h net: dsa: microchip: ptp: add packet reception timestamping 2023-01-13 08:40:41 +00:00
ksz_ptp_reg.h net: dsa: microchip: ptp: enable interrupt for timestamping 2023-01-13 08:40:41 +00:00
ksz_spi.c net: dsa: microchip: add dev_err_probe in probe functions 2022-11-09 13:06:01 +00:00
lan937x.h net: dsa: microchip: add the support for set_ageing_time 2022-09-16 21:51:47 +01:00
lan937x_main.c net: dsa: microchip: add error checking for ksz_pwrite 2022-11-09 13:06:01 +00:00
lan937x_reg.h net: dsa: microchip: add the support for set_ageing_time 2022-09-16 21:51:47 +01:00