aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bpf_types.h
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2019-04-09 14:41:15 -0700
committerDavid S. Miller <davem@davemloft.net>2019-04-11 14:24:06 -0700
commit30c15f033847c519bae4a3dc23320e1fbee868eb (patch)
tree2b79ab7c7809fbc49f17b1d83b0adf9bd625a7b9 /include/linux/bpf_types.h
parentipv6: Refactor find_match (diff)
downloadlinux-rng-30c15f033847c519bae4a3dc23320e1fbee868eb.tar.xz
linux-rng-30c15f033847c519bae4a3dc23320e1fbee868eb.zip
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 'include/linux/bpf_types.h')
0 files changed, 0 insertions, 0 deletions