aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorDaniel Machon <[email protected]>2024-10-04 15:19:28 +0200
committerPaolo Abeni <[email protected]>2024-10-08 12:07:00 +0200
commit5ba3f8460393aab8debdc961a8364527252c2b1e (patch)
tree90c8667db6213cb1a931fbf7dd8f3d4aab7d9d94 /tools/perf/scripts/python/netdev-times.py
parent1d00c08048529b36e4d039aee8d60f8258797ed7 (diff)
net: sparx5: add indirection layer to register macros
The register macros are used to read and write to the switch registers. The registers are largely the same on Sparx5 and lan969x, however in some cases they differ. The differences can be one or more of the following: target size, register address, register count, group address, group count, group size, field position, field size. In order to handle these differences, we introduce a new indirection layer, that defines and maps them to corresponding values, based on the platform. As the register macro arguments can now be non-constants, we also add non-constant variants of FIELD_GET and FIELD_PREP. Since the indirection layer contributes to longer macros, we have changed the formatting of them slightly, to adhere to a 80 character limit, and added a comment if a macro is platform-specific. With these additions, we can reuse all the existing macros for lan969x. Reviewed-by: Steen Hegelund <[email protected]> Signed-off-by: Daniel Machon <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions