linux/drivers/net/can/dev
Vincent Mailhol 90f942c5a6 can: dev: add generic function can_eth_ioctl_hwts()
Tools based on libpcap (such as tcpdump) expect the SIOCSHWTSTAMP
ioctl call to be supported. This is also specified in the kernel doc
[1]. The purpose of this ioctl is to toggle the hardware timestamps.

Currently, CAN devices which support hardware timestamping have those
always activated. can_eth_ioctl_hwts() is a dumb function that will
always succeed when requested to set tx_type to HWTSTAMP_TX_ON or
rx_filter to HWTSTAMP_FILTER_ALL.

[1] Kernel doc: Timestamping, section 3.1 "Hardware Timestamping
Implementation: Device Drivers"
Link: https://docs.kernel.org/networking/timestamping.html#hardware-timestamping-implementation-device-drivers

Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/all/20220727101641.198847-9-mailhol.vincent@wanadoo.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2022-07-28 11:44:30 +02:00
..
bittiming.c can: bittiming: move bittiming calculation functions to calc_bittiming.c 2022-06-11 17:11:01 +02:00
calc_bittiming.c can: bittiming: move bittiming calculation functions to calc_bittiming.c 2022-06-11 17:11:01 +02:00
dev.c can: dev: add generic function can_eth_ioctl_hwts() 2022-07-28 11:44:30 +02:00
length.c
Makefile can: Kconfig: add CONFIG_CAN_RX_OFFLOAD 2022-06-11 17:11:02 +02:00
netlink.c can: netlink: dump bitrate 0 if can_priv::bittiming.bitrate is -1U 2022-07-03 11:34:24 +02:00
rx-offload.c can: can-dev: remove obsolete CAN LED support 2022-05-19 22:15:51 +02:00
skb.c can: dev: add hardware TX timestamp 2022-07-28 11:44:30 +02:00