Nicolas Dichtel
0d88359092
nh: fix scope used to find saddr when adding non gw nh
...
[ Upstream commit bac0f937c343d651874f83b265ca8f5070ed4f06 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-03 23:57:54 +09:00
..
2020-08-10 12:06:44 -07:00
2022-10-26 13:25:22 +02:00
2022-10-26 13:25:56 +02:00
2021-04-14 08:42:05 +02:00
2022-04-13 21:00:57 +02:00
2020-09-25 13:58:01 -07:00
2022-07-21 21:20:08 +02:00
2022-10-30 09:41:19 +01:00
2022-09-28 11:10:35 +02:00
2022-03-16 14:15:57 +01:00
2022-04-27 13:53:48 +02:00
2022-09-08 11:11:40 +02:00
2020-03-29 22:30:57 -07:00
2019-10-04 11:10:56 -07:00
2021-12-08 09:03:26 +01:00
2022-07-29 17:19:20 +02:00
2022-07-21 21:20:08 +02:00
2020-10-02 19:11:11 -07:00
2021-01-12 20:18:12 +01:00
2020-08-03 15:29:44 -07:00
2022-07-29 17:19:12 +02:00
2022-08-03 12:00:46 +02:00
2022-07-29 17:19:13 +02:00
2021-12-22 09:30:53 +01:00
2022-01-27 10:54:33 +01:00
2022-10-26 13:25:23 +02:00
2019-05-21 10:50:45 +02:00
2022-07-21 21:20:07 +02:00
2022-07-29 17:19:12 +02:00
2022-01-27 10:54:33 +01:00
2022-06-29 08:59:48 +02:00
2020-03-30 13:45:04 -07:00
2020-08-25 06:28:02 -07:00
2022-08-31 17:15:19 +02:00
2022-08-31 17:15:20 +02:00
2022-07-07 17:52:19 +02:00
2021-08-04 12:46:42 +02:00
2021-03-17 17:06:12 +01:00
2020-07-09 12:55:37 +02:00
2021-06-18 10:00:05 +02:00
2020-06-30 12:29:39 -07:00
2019-10-04 11:10:56 -07:00
2022-02-16 12:54:25 +01:00
2020-08-18 16:02:16 -07:00
2020-07-10 13:54:00 -07:00
2019-05-21 10:50:45 +02:00
2020-10-30 12:57:39 +01:00
2019-05-21 10:50:45 +02:00
2022-11-03 23:57:54 +09:00
2022-06-09 10:21:09 +02:00
2021-11-18 14:04:08 +01:00
2019-05-30 11:26:32 -07:00
2020-03-12 22:34:48 -07:00
2022-06-09 10:21:09 +02:00
2022-07-29 17:19:12 +02:00
2022-07-29 17:19:21 +02:00
2022-07-29 17:19:20 +02:00
2021-08-18 08:59:13 +02:00
2020-03-16 18:26:54 -07:00
2022-04-08 14:40:21 +02:00
2019-05-21 10:50:45 +02:00
2021-05-14 09:50:46 +02:00
2021-12-01 09:19:06 +01:00
2019-05-30 11:26:32 -07:00
2018-10-10 22:26:00 -07:00
2020-02-27 18:50:19 -08:00
2022-07-29 17:19:18 +02:00
2020-07-06 13:23:03 -07:00
2020-07-06 13:23:03 -07:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2022-11-03 23:57:52 +09:00
2022-11-03 23:57:52 +09:00
2019-05-21 10:50:45 +02:00
2022-08-03 12:00:45 +02:00
2022-07-29 17:19:22 +02:00
2019-05-21 10:50:45 +02:00
2021-08-12 13:22:05 +02:00
2022-10-26 13:25:23 +02:00
2022-05-09 09:05:03 +02:00
2022-07-29 17:19:21 +02:00
2020-08-24 17:31:20 -07:00
2022-07-29 17:19:21 +02:00
2020-03-09 22:34:58 +01:00
2020-10-13 17:11:52 -07:00
2020-07-06 13:23:03 -07:00
2019-05-21 10:50:45 +02:00
2020-03-16 18:26:55 -07:00
2022-10-26 13:25:56 +02:00
2020-07-09 12:51:36 +02:00
2021-07-28 14:35:37 +02:00
2020-03-12 22:34:48 -07:00
2020-07-24 15:41:54 -07:00
2021-08-12 13:22:05 +02:00
2020-07-10 13:54:00 -07:00
2022-03-02 11:42:51 +01:00
2020-07-10 13:54:00 -07:00
2022-10-30 09:41:19 +01:00
2020-07-19 18:16:41 -07:00
2020-05-06 09:40:08 +02:00
2020-05-11 15:12:27 +02:00
2019-12-24 22:28:54 -08:00
2022-06-14 18:32:40 +02:00
2020-05-06 09:40:08 +02:00
2020-10-09 12:29:48 +02:00