mirror of
https://gitee.com/openharmony/kernel_linux
synced 2025-05-24 15:46:39 +00:00

can_get_echo_skb() is usually called in the TX complete handler. The stats->tx_packets and stats->tx_bytes should be updated there, too. This patch simplifies to figure out the size of the sent CAN frame. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>