From: David Ahern <dsahern@gmail.com>
To: David Miller <davem@davemloft.net>, netdev@vger.kernel.org
Subject: Re: [PATCH] ipv6: Use ip6_multipath_hash_policy() in rt6_multipath_hash().
Date: Mon, 12 Mar 2018 11:11:45 -0700 [thread overview]
Message-ID: <78208e98-d7da-d654-e57e-fcb583a62334@gmail.com> (raw)
In-Reply-To: <20180312.111017.1189396536892856155.davem@davemloft.net>
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!
prev parent reply other threads:[~2018-03-12 18:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=78208e98-d7da-d654-e57e-fcb583a62334@gmail.com \
--to=dsahern@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox