summaryrefslogtreecommitdiff
path: root/net/ipv6/route.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-03-12 11:09:33 -0400
committerDavid S. Miller <davem@davemloft.net>2018-03-12 11:09:33 -0400
commitbbfa047a25c379e467536c5ed2ba00c0cb602ca1 (patch)
treeebf9ca42e013c49703017def60a9b42efd49d927 /net/ipv6/route.c
parent27a9ae9b9f0e2099ea0d9cddcfb9cd8ff98ee27a (diff)
downloadlinux-bbfa047a25c379e467536c5ed2ba00c0cb602ca1.tar.gz
linux-bbfa047a25c379e467536c5ed2ba00c0cb602ca1.tar.xz
ipv6: Use ip6_multipath_hash_policy() in rt6_multipath_hash().
Make use of the new helper. Suggested-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r--net/ipv6/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index f0ae58424c45..81711e3e2604 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -1846,7 +1846,7 @@ u32 rt6_multipath_hash(const struct net *net, const struct flowi6 *fl6,
struct flow_keys hash_keys;
u32 mhash;
- switch (net->ipv6.sysctl.multipath_hash_policy) {
+ switch (ip6_multipath_hash_policy(net)) {
case 0:
memset(&hash_keys, 0, sizeof(hash_keys));
hash_keys.control.addr_type = FLOW_DISSECTOR_KEY_IPV6_ADDRS;