Re: [PATCH net-next v7 01/10] net: team: Annotate reads and writes for mixed lock accessed values

Kuniyuki Iwashima
2026-04-10T05:55:53Z

On Wed, Apr 8, 2026 at 7:59 PM Marc Harvey <marcharvey@google.com> 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@nvidia.com>
> Signed-off-by: Marc Harvey <marcharvey@google.com>

Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>

fwiw, Sashiko's review is orthogonal to this patch;
the comments are for the existing code before this patch.