projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
745b913
)
Revert "ip: fix dflt addr selection for connected nexthop"
author
Nicolas Dichtel
<nicolas.dichtel@6wind.com>
Thu, 20 Oct 2022 10:09:51 +0000
(12:09 +0200)
committer
Jakub Kicinski
<kuba@kernel.org>
Thu, 27 Oct 2022 17:17:36 +0000
(10:17 -0700)
This reverts commit
747c14307214b55dbd8250e1ab44cad8305756f1
.
As explained by Julian, nhc_scope is related to nhc_gw, not to the route.
Revert the original patch. The initial problem is fixed differently in the
next commit.
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>
net/ipv4/fib_semantics.c
patch
|
blob
|
history
diff --git
a/net/ipv4/fib_semantics.c
b/net/ipv4/fib_semantics.c
index e9a7f70a54df4920f6f41e4ed0967069adb05e98..f721c308248bad8b37d6ffb5b651883799630d33 100644
(file)
--- a/
net/ipv4/fib_semantics.c
+++ b/
net/ipv4/fib_semantics.c
@@
-1231,7
+1231,7
@@
static int fib_check_nh_nongw(struct net *net, struct fib_nh *nh,
nh->fib_nh_dev = in_dev->dev;
netdev_hold(nh->fib_nh_dev, &nh->fib_nh_dev_tracker, GFP_ATOMIC);
- nh->fib_nh_scope = RT_SCOPE_
LINK
;
+ nh->fib_nh_scope = RT_SCOPE_
HOST
;
if (!netif_carrier_ok(nh->fib_nh_dev))
nh->fib_nh_flags |= RTNH_F_LINKDOWN;
err = 0;