Re: [PATCH net-next v7 01/10] net: team: Annotate reads and writes for mixed lock accessed values
From: Kuniyuki Iwashima
Date: Fri Apr 10 2026 - 01:56:11 EST
On Wed, Apr 8, 2026 at 7:59 PM Marc Harvey <marcharvey@xxxxxxxxxx> wrote:
>
> The team_port's "index" and the team's "en_port_count" are read in
> the hot transmit path, but are only written to when holding the rtnl
> lock.
>
> Use READ_ONCE() for all lockless reads of these values, and use
> WRITE_ONCE() for all writes.
>
> Reviewed-by: Jiri Pirko <jiri@xxxxxxxxxx>
> Signed-off-by: Marc Harvey <marcharvey@xxxxxxxxxx>
Reviewed-by: Kuniyuki Iwashima <kuniyu@xxxxxxxxxx>
fwiw, Sashiko's review is orthogonal to this patch;
the comments are for the existing code before this patch.