diff options
author | David Ahern <dsahern@gmail.com> | 2017-09-27 19:08:00 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-29 06:19:32 +0100 |
commit | c7c3e5913bf18eda3cf38932bebdce48351baac9 (patch) | |
tree | 27321a5ad7e3e96fec14ce1dd98535e92c7b05db /net | |
parent | fadad670a8abe89d08b875736557bd84063b07ec (diff) | |
download | op-kernel-dev-c7c3e5913bf18eda3cf38932bebdce48351baac9.zip op-kernel-dev-c7c3e5913bf18eda3cf38932bebdce48351baac9.tar.gz |
net: ipv4: remove fib_weight
fib_weight in fib_info is set but not used. Remove it and the
helpers for setting it.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/fib_semantics.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index 57a5d48..be087462 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c @@ -601,17 +601,9 @@ static void fib_rebalance(struct fib_info *fi) atomic_set(&nexthop_nh->nh_upper_bound, upper_bound); } endfor_nexthops(fi); } - -static inline void fib_add_weight(struct fib_info *fi, - const struct fib_nh *nh) -{ - fi->fib_weight += nh->nh_weight; -} - #else /* CONFIG_IP_ROUTE_MULTIPATH */ #define fib_rebalance(fi) do { } while (0) -#define fib_add_weight(fi, nh) do { } while (0) #endif /* CONFIG_IP_ROUTE_MULTIPATH */ @@ -1275,7 +1267,6 @@ struct fib_info *fib_create_info(struct fib_config *cfg, change_nexthops(fi) { fib_info_update_nh_saddr(net, nexthop_nh); - fib_add_weight(fi, nexthop_nh); } endfor_nexthops(fi) fib_rebalance(fi); |