Re: [PATCH v1 1/3] net/af_packet: fix thread safety and frame calculations

Scott Mitchell
2026-01-28T01:35:24Z

> 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).