diff options
author | Vincent Mailhol <mailhol.vincent@wanadoo.fr> | 2022-07-27 19:16:31 +0900 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2022-07-28 09:30:36 +0200 |
commit | 6a37a28b1864c447a20a1609f90f3e2dfaff0705 (patch) | |
tree | ac1170010b7239935c0181201eeae2c77204e0c4 /drivers/net/can/c_can | |
parent | 6153a7ea650ff1249d703d09a3351c3f77f1fbfa (diff) | |
download | linux-6a37a28b1864c447a20a1609f90f3e2dfaff0705.tar.gz linux-6a37a28b1864c447a20a1609f90f3e2dfaff0705.tar.bz2 linux-6a37a28b1864c447a20a1609f90f3e2dfaff0705.zip |
can: v(x)can: add software tx timestamps
TX timestamps were added to the can_put_echo_skb() function of can_dev
modules in [1]. However, vcan and vxcan do not rely on that function
and as such do not offer TX timestamping.
While it could be arguable whether TX timestamps are really needed for
virtual interfaces, we prefer to still add it so that all CAN drivers,
without exception, support the software TX timestamps.
Add a call to skb_tx_timestamp() in the vcan_tx() and vxcan_xmit()
functions so that the modules now support TX software timestamps.
[1] commit 741b91f1b0ea ("can: dev: can_put_echo_skb(): add software
tx timestamps")
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=741b91f1b0ea34f00f6a7d4539b767c409291fcf
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/all/20220727101641.198847-5-mailhol.vincent@wanadoo.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/c_can')
0 files changed, 0 insertions, 0 deletions