summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2019-04-10 00:41:15 +0300
committerDavid S. Miller <davem@davemloft.net>2019-04-12 00:24:06 +0300
commit30c15f033847c519bae4a3dc23320e1fbee868eb (patch)
tree2b79ab7c7809fbc49f17b1d83b0adf9bd625a7b9 /tools/perf/scripts/python/export-to-postgresql.py
parent28679ed1047955e1a618984c90e4f1c6bfdaeb93 (diff)
downloadlinux-30c15f033847c519bae4a3dc23320e1fbee868eb.tar.xz
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 <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions