aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorIdo Schimmel <[email protected]>2018-11-25 09:43:55 +0000
committerDavid S. Miller <[email protected]>2018-11-27 15:27:07 -0800
commit7c4a729221566c3523701c7a08983c580a84012a (patch)
treea5c058d8fcf3df96879458a95d1ea3396a010763 /tools/perf/scripts/python/netdev-times.py
parent6502be9f04da2df88095e9ff7c964c2d5915bb3a (diff)
mlxsw: spectrum_fid: Make flood index calculation more robust
802.1D FIDs use a per-FID flood table, where the flood index into the table is calculated by subtracting 4K from the FID's index. Currently, 802.1D FIDs start at 4K, so the calculation is correct, but if it was ever to change, the calculation will no longer be correct. In addition, this change will allow us to reuse the flood index calculation function in the next patch, where we are going to emulate 802.1Q FIDs using 802.1D FIDs. Signed-off-by: Ido Schimmel <[email protected]> Reviewed-by: Petr Machata <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions