From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH net v2] ipv6: omit traffic class when calculating flow hash Date: Sun, 3 Jun 2018 09:00:42 -0600 Message-ID: <687af1bc-a1f9-c0d2-dd3a-eeef3a2bf9b4@gmail.com> References: <20180602080528.54B27A0C48@unicorn.suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Dichtel , Tom Herbert , Ido Schimmel To: Michal Kubecek , "David S. Miller" Return-path: In-Reply-To: <20180602080528.54B27A0C48@unicorn.suse.cz> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 6/2/18 1:40 AM, Michal Kubecek wrote: > diff --git a/include/net/ipv6.h b/include/net/ipv6.h > index 836f31af1369..7fbdc3e9e25d 100644 > --- a/include/net/ipv6.h > +++ b/include/net/ipv6.h > @@ -906,6 +906,11 @@ static inline __be32 ip6_make_flowinfo(unsigned int tclass, __be32 flowlabel) > return htonl(tclass << IPV6_TCLASS_SHIFT) | flowlabel; > } > > +static inline u32 flowi6_get_flowlabel(const struct flowi6 *fl6) > +{ > + return (__force u32)(fl6->flowlabel & IPV6_FLOWLABEL_MASK); > +} > + > /* > * Prototypes exported by ipv6 > */ discussing the fix for net-next and making the label vs info consistent, Michal notes a few places where this helper is needed as a __be32, so the typecast should be outside of this helper.