]> git.baikalelectronics.ru Git - kernel.git/commit
can: janz-ican3: add software tx timestamp
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Wed, 27 Jul 2022 10:16:29 +0000 (19:16 +0900)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 28 Jul 2022 07:30:36 +0000 (09:30 +0200)
commit9e47664f0480b453f893fb9f1d6bc75bedb0f9c0
tree3c11568fdf60caa60142970c0b49f2c079328e73
parentc717080ce2c0c2efd7c9102036a6976956fc34dc
can: janz-ican3: add software tx timestamp

TX timestamps were added to the can_put_echo_skb() function of can_dev
modules in [1]. However, janz-ican3 does not rely on that function but
instead implements its own echo_skb logic. As such it does not offer
TX timestamping.

Add a call to skb_tx_timestamp() in the ican3_put_echo_skb() function
so that the module now supports TX software timestamps.

[1] commit f799fa169b39 ("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=f799fa169b39188971606586c8af0b81eaed7f27
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/all/20220727101641.198847-3-mailhol.vincent@wanadoo.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/janz-ican3.c