batman-adv: replace non-atomic packet_size_max with (READ|WRITE)_ONCE

The maximum packet size of an meshif is only accessed as plain loads/stores
and does not require full atomic_t semantics. Convert to a native integer
and replace its users with READ_ONCE()/WRITE_ONCE() to avoid load/store
tearing.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
Sven Eckelmann 2026-05-12 19:37:05 +02:00
commit 58020571b5
No known key found for this signature in database
GPG key ID: 4D0F772BD314F5CB
4 changed files with 6 additions and 7 deletions