aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorOliver Hartkopp <[email protected]>2020-10-20 08:44:43 +0200
committerMarc Kleine-Budde <[email protected]>2020-11-03 22:30:12 +0100
commited3320cec279407a86bc4c72edc4a39eb49165ec (patch)
tree256475d8dfef1a1ac01dd8ce0641a36833ad538c /tools/perf/scripts/python/exported-sql-viewer.py
parent2283f79b22684d2812e5c76fc2280aae00390365 (diff)
can: dev: __can_get_echo_skb(): fix real payload length return value for RTR frames
The can_get_echo_skb() function returns the number of received bytes to be used for netdev statistics. In the case of RTR frames we get a valid (potential non-zero) data length value which has to be passed for further operations. But on the wire RTR frames have no payload length. Therefore the value to be used in the statistics has to be zero for RTR frames. Reported-by: Vincent Mailhol <[email protected]> Signed-off-by: Oliver Hartkopp <[email protected]> Link: https://lore.kernel.org/r/[email protected] Fixes: cf5046b309b3 ("can: dev: let can_get_echo_skb() return dlc of CAN frame") Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions