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 B297C28E11 for ; Thu, 14 Sep 2023 14:54:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE635C433C7; Thu, 14 Sep 2023 14:54:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694703250; bh=0pbck9r2p2FEU9Ej1Vze9zXz0fAhWSx5rWdPGlTc8w4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=oPyrwwXGSniq2gzJgnnqj8yk0xVU+984KYKZkKrRIyIs29VCVs+sxa8F6LkSFgIb0 qZoEvItkyA7VCqq+ZgwFzYpLh2vB+r35FQ09Kf4w1LGUsU9XNkxHDvg/QlyZIk/XFe G4HaZ2EHuPy2ba/ZkVTFAJnCh5/52gP+g0JExYrnYDePBaLXLvShGrC94ILOmV1fSb YmlNKwKWY5ukAucC3czcClPpha5Jymw/qivX5r1c0AJ5E19UQiSFnYSydW8YKS6qUh O/AgjQhXXF/9B92/kNfnMtETPKz4c1qA2HIq6SUP5EAmyaTrd9ISebcVzlV20uq4mn TOI6K8mRG1S9g== Message-ID: Date: Thu, 14 Sep 2023 08:54:09 -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 02/14] ipv6: lockless IPV6_MULTICAST_LOOP 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-3-edumazet@google.com> From: David Ahern In-Reply-To: <20230912160212.3467976-3-edumazet@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 9/12/23 10:02 AM, Eric Dumazet wrote: > Add inet6_{test|set|clear|assign}_bit() helpers. > > Note that I am using bits from inet->inet_flags, > this might change in the future if we need more flags. > > While solving data-races accessing np->mc_loop, > this patch also allows to implement lockless accesses > to np->mcast_hops in the following patch. > > Also constify sk_mc_loop() argument. > > Signed-off-by: Eric Dumazet > --- > include/linux/ipv6.h | 18 ++++++++++++++---- > include/net/inet_sock.h | 1 + > include/net/sock.h | 2 +- > net/core/sock.c | 4 ++-- > net/ipv6/af_inet6.c | 2 +- > net/ipv6/ipv6_sockglue.c | 18 ++++++++---------- > net/ipv6/ndisc.c | 2 +- > net/netfilter/ipvs/ip_vs_sync.c | 8 ++------ > 8 files changed, 30 insertions(+), 25 deletions(-) > Reviewed-by: David Ahern