projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27a9ae9
)
ipv6: Use ip6_multipath_hash_policy() in rt6_multipath_hash().
author
David S. Miller
<davem@davemloft.net>
Mon, 12 Mar 2018 15:09:33 +0000
(11:09 -0400)
committer
David S. Miller
<davem@davemloft.net>
Mon, 12 Mar 2018 15:09:33 +0000
(11:09 -0400)
Make use of the new helper.
Suggested-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c
patch
|
blob
|
history
diff --git
a/net/ipv6/route.c
b/net/ipv6/route.c
index f0ae58424c45def8a5ed7de8389430abf030c929..81711e3e26044043a67b87e82167364c32562fb1 100644
(file)
--- 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;