diff options
author | Vincent Mailhol <mailhol.vincent@wanadoo.fr> | 2022-07-27 12:16:28 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2022-07-28 09:30:36 +0200 |
commit | 303066fc5a4916cfc777d360391a95fb8eb8a527 (patch) | |
tree | 9ef4c52d0e7970ceb2883c54e33777c3f2ee4a5a /drivers/net/can/can327.c | |
parent | Merge patch series "can: slcan: extend supported features (step 2)" (diff) | |
download | linux-303066fc5a4916cfc777d360391a95fb8eb8a527.tar.xz linux-303066fc5a4916cfc777d360391a95fb8eb8a527.zip |
can: can327: add software tx timestamps
TX timestamps were added to the can_put_echo_skb() function of can_dev
modules in [1]. However, can327 does not rely on that function and as
such does not offer TX timestamping.
Add a call to skb_tx_timestamp() in the can327_netdev_start_xmit()
function so that the module now supports 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-2-mailhol.vincent@wanadoo.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/can327.c')
-rw-r--r-- | drivers/net/can/can327.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/can/can327.c b/drivers/net/can/can327.c index bf0cce2dbb40..3f2156540716 100644 --- a/drivers/net/can/can327.c +++ b/drivers/net/can/can327.c @@ -836,6 +836,8 @@ static netdev_tx_t can327_netdev_start_xmit(struct sk_buff *skb, dev->stats.tx_packets++; dev->stats.tx_bytes += frame->can_id & CAN_RTR_FLAG ? 0 : frame->len; + skb_tx_timestamp(skb); + out: kfree_skb(skb); return NETDEV_TX_OK; |