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 3684339C for ; Thu, 14 Sep 2023 15:10:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7744EC433C7; Thu, 14 Sep 2023 15:10:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694704221; bh=JXliuxeCcf+hYzMjTQnEi1CA816lZz/LUehe4Lt64EE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=CL2r3LhE/FU2YAvXdoBz8Rzt+Y34fQO0c6e9XWm5bzb5u+DEQ13JRoE87eB1ZltNg Ubj5ShemrLy7DQQRA0PCjr7EA5pNG8fC4VYDtLvfp8wj/78hfp0jH4Txk5KKhIJk6P iMhtP63qWZU/AQ/AbRDUUZB/QnfdsaUqTYlE7dqG9/ZmfAkGN6bM1ocRnx86IL1/Xe SybRzahunJDFIRldVgjp46thZr1iQJcawThHv9cdrU2Q5u0qspMwVykebJocrb2Ne+ xOZ8Uj29xJtMFEZQSFK1CbZ5rXxgq57yTOlOW6Jw3nvTbAtIr1Ch4O/lee1iB2wQ+s yqR559l6DZ7Sg== Message-ID: Date: Thu, 14 Sep 2023 09:10:20 -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 13/14] ipv6: lockless IPV6_MTU_DISCOVER 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-14-edumazet@google.com> From: David Ahern In-Reply-To: <20230912160212.3467976-14-edumazet@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 9/12/23 10:02 AM, Eric Dumazet wrote: > Most np->pmtudisc reads are racy. > > Move this 3bit field on a full byte, add annotations > and make IPV6_MTU_DISCOVER setsockopt() lockless. > > Signed-off-by: Eric Dumazet > --- > include/linux/ipv6.h | 5 ++--- > include/net/ip6_route.h | 14 +++++++++----- > net/ipv6/ip6_output.c | 4 ++-- > net/ipv6/ipv6_sockglue.c | 17 ++++++++--------- > net/ipv6/raw.c | 2 +- > net/ipv6/udp.c | 2 +- > net/netfilter/ipvs/ip_vs_sync.c | 2 +- > 7 files changed, 24 insertions(+), 22 deletions(-) > Reviewed-by: David Ahern