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

Jiri Pirko
2026-04-07T11:56:09Z

Mon, Apr 06, 2026 at 05:03:37AM +0200, 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.
>
>Signed-off-by: Marc Harvey <marcharvey@google.com>
>---
>Changes in v5:
>- None
>
>Changes in v4:
>- None
>
>Changes in v3:
>- None
>
>Changes in v2:
>- None

Nit: I don't think you need to add such record when there is no change.

Reviewed-by: Jiri Pirko <jiri@nvidia.com>