diff options
author | Rasmus Villemoes <[email protected]> | 2021-01-19 16:08:00 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2021-01-21 12:19:56 -0800 |
commit | 634b5bd7318725202ffad6cbf034b006970b1112 (patch) | |
tree | 9ac568c38c8fa70acf9704f82260ca22fc65ae58 /tools/perf/scripts/python | |
parent | 33deb13c87e561c3b566c60aede124a5e23981c1 (diff) |
ethernet: ucc_geth: add helper to replace repeated switch statements
The translation from the ucc_geth_num_of_threads enum value to the
actual count can be written somewhat more compactly with a small
lookup table, allowing us to replace the four switch statements.
Signed-off-by: Rasmus Villemoes <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions