diff options
author | 2019-12-23 15:28:13 +0200 | |
---|---|---|
committer | 2019-12-24 22:37:29 -0800 | |
commit | c10c4279c778df03f404a4d6906d7d4b840eb95f (patch) | |
tree | aa768ad0669898767b41cda125fe165430360339 /tools/perf/scripts/python/check-perf-trace.py | |
parent | net: fib_notifier: Add temporary events to the FIB notification chain (diff) | |
download | linux-dev-c10c4279c778df03f404a4d6906d7d4b840eb95f.tar.xz linux-dev-c10c4279c778df03f404a4d6906d7d4b840eb95f.zip |
ipv6: Notify newly added route if should be offloaded
fib6_add_rt2node() takes care of adding a single route ('struct
fib6_info') to a FIB node. The route in question should only be notified
in case it is added as the first route in the node (lowest metric) or if
it is added as a sibling route to the first route in the node.
The first criterion can be tested by checking if the route is pointed to
by 'fn->leaf'. The second criterion can be tested by checking the new
'notify_sibling_rt' variable that is set when the route is added as a
sibling to the first route in the node.
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions