diff options
| author | Marc Kleine-Budde <mkl@pengutronix.de> | 2021-01-11 17:19:24 +0300 |
|---|---|---|
| committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2021-01-14 10:43:41 +0300 |
| commit | 99b7beb0431a4b9728023e9169ed15af678d2c7f (patch) | |
| tree | 769fdd74658e90b5e090ddfb458f674c0deab913 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 652562e5ff06d27b9b83c8166cb71845a55607ad (diff) | |
| download | linux-99b7beb0431a4b9728023e9169ed15af678d2c7f.tar.xz | |
can: length: canfd_sanitize_len(): add function to sanitize CAN-FD data length
The data field in CAN-FD frames have specifig frame length (0, 1, 2, 3, 4, 5,
6, 7, 8, 12, 16, 20, 24, 32, 48, 64). This function "rounds" up a given length
to the next valid CAN-FD frame length.
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/r/20210111141930.693847-10-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
