mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 22:42:10 +00:00
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>
This commit is contained in:
parent
27a9ae9b9f
commit
bbfa047a25
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue