diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2021-01-19 16:08:00 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-21 12:19:56 -0800 |
commit | 634b5bd7318725202ffad6cbf034b006970b1112 (patch) | |
tree | 9ac568c38c8fa70acf9704f82260ca22fc65ae58 /tools/perf/scripts/python/export-to-postgresql.py | |
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 <rasmus.villemoes@prevas.dk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions