diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2022-10-20 12:09:52 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-10-27 10:17:40 -0700 |
commit | bac0f937c343d651874f83b265ca8f5070ed4f06 (patch) | |
tree | 8c3e02c388dcfbb1897d59647327f49c7a5b56f3 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e021c329ee198f1cd0cb3855f221137dda49256a (diff) |
nh: fix scope used to find saddr when adding non gw nh
As explained by Julian, fib_nh_scope is related to fib_nh_gw4, but
fib_info_update_nhc_saddr() needs the scope of the route, which is
the scope "before" fib_nh_scope, ie fib_nh_scope - 1.
This patch fixes the problem described in commit 747c14307214 ("ip: fix
dflt addr selection for connected nexthop").
Fixes: 597cfe4fc339 ("nexthop: Add support for IPv4 nexthops")
Link: https://lore.kernel.org/netdev/6c8a44ba-c2d5-cdf-c5c7-5baf97cba38@ssi.bg/
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions