From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f194.google.com ([209.85.192.194]:33507 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932231AbeCLSLt (ORCPT ); Mon, 12 Mar 2018 14:11:49 -0400 Received: by mail-pf0-f194.google.com with SMTP id q13so4702909pff.0 for ; Mon, 12 Mar 2018 11:11:48 -0700 (PDT) Subject: Re: [PATCH] ipv6: Use ip6_multipath_hash_policy() in rt6_multipath_hash(). To: David Miller , netdev@vger.kernel.org References: <20180312.111017.1189396536892856155.davem@davemloft.net> From: David Ahern Message-ID: <78208e98-d7da-d654-e57e-fcb583a62334@gmail.com> Date: Mon, 12 Mar 2018 11:11:45 -0700 MIME-Version: 1.0 In-Reply-To: <20180312.111017.1189396536892856155.davem@davemloft.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: On 3/12/18 8:10 AM, David Miller wrote: > > Make use of the new helper. > > Suggested-by: David Ahern > Signed-off-by: David S. Miller > --- > 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!