Re: [PATCH net-next] macsec: no longer rely on RTNL in macsec_fill_info()
From: Kuniyuki Iwashima <kuniyu@google.com>
Date: 2026-07-01 22:28:00
From: Kuniyuki Iwashima <kuniyu@google.com>
Date: 2026-07-01 22:28:00
On Wed, Jul 1, 2026 at 2:43 AM Eric Dumazet [off-list ref] wrote:
Add READ_ONCE()/WRITE_ONCE() annotations on fields that can be changed concurrently in macsec_changelink() and macsec_update_offload(): - secy->key_len - secy->xpn - tx_sc->encoding_sa - tx_sc->encrypt - secy->protect_frames - tx_sc->send_sci - tx_sc->end_station - tx_sc->scb - secy->replay_protect - secy->validate_frames - secy->replay_window - macsec->offload This allows macsec_fill_info() to run locklessly without RTNL. Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>