fib_check_nh does not use the fib_info arg; remove t.
Unified · Split
| @@ -766,8 +766,8 @@ bool fib_metrics_match(struct fib_config *cfg, struct fib_info *fi) · 765 unmodified lines | |||
| 766 | * | | 766 | * | |
| 767 | * |-> {local prefix} (terminal node) | 767 | * |-> {local prefix} (terminal node) |
| 768 | */ | 768 | */ |
| 769 | static int fib_check_nh(struct fib_config *cfg, struct fib_info *fi, | 769 | static int fib_check_nh(struct fib_config *cfg, struct fib_nh *nh, |
| 770 | struct fib_nh *nh, struct netlink_ext_ack *extack) | 770 | struct netlink_ext_ack *extack) |
| 771 | { | 771 | { |
| 772 | int err = 0; | 772 | int err = 0; |
| 773 | struct net *net; | 773 | struct net *net; |
| @@ -1250,7 +1250,7 @@ struct fib_info *fib_create_info(struct fib_config *cfg, · 476 unmodified lines | |||
| 1250 | int linkdown = 0; | 1250 | int linkdown = 0; |
| 1251 | 1251 | ||
| 1252 | change_nexthops(fi) { | 1252 | change_nexthops(fi) { |
| 1253 | err = fib_check_nh(cfg, fi, nexthop_nh, extack); | 1253 | err = fib_check_nh(cfg, nexthop_nh, extack); |
| 1254 | if (err != 0) | 1254 | if (err != 0) |
| 1255 | goto failure; | 1255 | goto failure; |
| 1256 | if (nexthop_nh->nh_flags & RTNH_F_LINKDOWN) | 1256 | if (nexthop_nh->nh_flags & RTNH_F_LINKDOWN) |