Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42A1B28E11 for ; Thu, 14 Sep 2023 14:55:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1E84C433C7; Thu, 14 Sep 2023 14:55:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694703354; bh=qquELLY/Nlz68lWG00v50QQtc9eCkSn+Wt0MCqYSjPY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZOmk40Bf3YMQrYcH2UQEu9CBMNCnCjQVc1y+ybn1NZLF4jRmG8lmLz3EFYRS4b9gX 9cv/Qp1HkPskyQ6E8s1XlxrGGvwkw5O7Fkjud2n170SJoOZr6yrm0SuNqJxJurG3B1 ReCui4i9DglKsVwSsTZtFwDNI0GEFNDCML9SPAQA9KI1Q9IfN2Aq28X5WRFEW6ZBU8 BPlIOmUkDG6HaKD/sEoQ9tUO1/fwM4vhEVKcqaV2pG/VLzXR1goGM0gsb1UM+8rhbW HoZbbWIkML9EPC8I6LCUMIUQdueDOo7T8shZQu+SJ+6LapPzjrUFYVXwb+iDREkYaU R1N3c8hNvVDcw== Message-ID: Date: Thu, 14 Sep 2023 08:55:53 -0600 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH net-next 03/14] ipv6: lockless IPV6_MULTICAST_HOPS implementation Content-Language: en-US To: Eric Dumazet , "David S . Miller" , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, eric.dumazet@gmail.com References: <20230912160212.3467976-1-edumazet@google.com> <20230912160212.3467976-4-edumazet@google.com> From: David Ahern In-Reply-To: <20230912160212.3467976-4-edumazet@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 9/12/23 10:02 AM, Eric Dumazet wrote: > This fixes data-races around np->mcast_hops, > and make IPV6_MULTICAST_HOPS lockless. > > Note that np->mcast_hops is never negative, > thus can fit an u8 field instead of s16. > > Signed-off-by: Eric Dumazet > --- > include/linux/ipv6.h | 9 +-------- > include/net/ipv6.h | 2 +- > net/dccp/ipv6.c | 2 +- > net/ipv6/ipv6_sockglue.c | 28 +++++++++++++++------------- > net/ipv6/tcp_ipv6.c | 3 ++- > net/netfilter/ipvs/ip_vs_sync.c | 2 +- > 6 files changed, 21 insertions(+), 25 deletions(-) > Reviewed-by: David Ahern