aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorDavid Ahern <[email protected]>2019-04-09 14:41:15 -0700
committerDavid S. Miller <[email protected]>2019-04-11 14:24:06 -0700
commit30c15f033847c519bae4a3dc23320e1fbee868eb (patch)
tree2b79ab7c7809fbc49f17b1d83b0adf9bd625a7b9 /tools/perf/scripts/python/exported-sql-viewer.py
parent28679ed1047955e1a618984c90e4f1c6bfdaeb93 (diff)
ipv6: Refactor find_rr_leaf
find_rr_leaf has 3 loops over fib_entries calling find_match. The loops are very similar with differences in start point and whether the metric is evaluated: 1. start at rr_head, no extra loop compare, check fib metric 2. start at leaf, compare rt against rr_head, check metric 3. start at cont (potential saved point from earlier loops), no extra loop compare, no metric check Create 1 loop that is called 3 different times. This will make a later change with multipath nexthop objects much simpler. Signed-off-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions