diff options
| author | Oliver Hartkopp <socketcan@hartkopp.net> | 2026-01-26 11:45:40 +0100 |
|---|---|---|
| committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2026-03-02 10:24:41 +0100 |
| commit | c77bfbdd6aac31b152ee81522cd90ad1de18738f (patch) | |
| tree | 0479b323a97862d0f24b8a23fc050f946c94f601 /scripts/const_structs.checkpatch | |
| parent | c35636e91e392e1540949bbc67932167cb48bc3a (diff) | |
| download | linux-c77bfbdd6aac31b152ee81522cd90ad1de18738f.tar.gz linux-c77bfbdd6aac31b152ee81522cd90ad1de18738f.zip | |
can: dummy_can: dummy_can_init(): fix packet statistics
The former implementation was only counting the tx_packets value but not
the tx_bytes as the skb was dropped on driver layer.
Enable CAN echo support (IFF_ECHO) in dummy_can_init(), which activates the
code for setting and retrieving the echo SKB and counts the tx_bytes
correctly.
Fixes: 816cf430e84b ("can: add dummy_can driver")
Cc: Vincent Mailhol <mailhol@kernel.org>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Reviewed-by: Vincent Mailhol <mailhol@kernel.org>
Link: https://patch.msgid.link/20260126104540.21024-1-socketcan@hartkopp.net
[mkl: make commit message imperative]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
