diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2024-06-11 15:54:31 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-06-13 17:07:11 -0700 |
commit | e6c34597f89ac98c06176eed57f125252015a330 (patch) | |
tree | a49af557335e2e67f8ccc36ef797868ca718610f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | c927b6e47b5cc7324217bf5fe7e6ccd0633971a0 (diff) |
net: dsa: lantiq_gswip: Consistently use macros for the mac bridge table
Only bits [5:0] in mac_bridge.key[3] are reserved for the FID.
Also, for dynamic (learned) entries, bits [7:4] in mac_bridge.val[0]
represents the port.
Introduce new macros GSWIP_TABLE_MAC_BRIDGE_KEY3_FID and
GSWIP_TABLE_MAC_BRIDGE_VAL0_PORT macro and use it throughout the driver.
Also rename and update GSWIP_TABLE_MAC_BRIDGE_VAL1_STATIC to use the
BIT() macro. This makes the driver code easier to understand.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20240611135434.3180973-10-ms@dev.tdt.de
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