[PATCH v1 1/3] net/af_packet: fix thread safety and frame calculations
Scott Mitchell
scott.k.mitch1 at gmail.com
Wed Jan 28 02:35:10 CET 2026
> This is bad idea
>
> Atomic is even more expensive and only one thread should be updating
> at a time. If you want to handle 32 bit platforms then something
> like the Linux kernel mechanism for stats is needed. It does:
> - on 32 bit platforms does a multiple read look (like seqlock)
> - on 64 bit platforms is just regular operations.
ack. I will revert atomic stats and keep the existing approach
(consistent with other eth drivers).
More information about the stable
mailing list