* [PATCH] ipv6: Use ip6_multipath_hash_policy() in rt6_multipath_hash().
@ 2018-03-12 15:10 David Miller
2018-03-12 18:11 ` David Ahern
0 siblings, 1 reply; 2+ messages in thread
From: David Miller @ 2018-03-12 15:10 UTC (permalink / raw)
To: netdev; +Cc: dsahern
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.14.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] ipv6: Use ip6_multipath_hash_policy() in rt6_multipath_hash().
2018-03-12 15:10 [PATCH] ipv6: Use ip6_multipath_hash_policy() in rt6_multipath_hash() David Miller
@ 2018-03-12 18:11 ` David Ahern
0 siblings, 0 replies; 2+ messages in thread
From: David Ahern @ 2018-03-12 18:11 UTC (permalink / raw)
To: David Miller, netdev
On 3/12/18 8:10 AM, David Miller wrote:
>
> 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 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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;
>
Thanks for taking care of that!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-12 18:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-12 15:10 [PATCH] ipv6: Use ip6_multipath_hash_policy() in rt6_multipath_hash() David Miller
2018-03-12 18:11 ` David Ahern
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox