[PATCH] net/af_packet: cache align Rx/Tx structs
Stephen Hemminger
stephen at networkplumber.org
Thu Apr 25 17:07:04 CEST 2024
On Thu, 25 Apr 2024 15:04:27 +0100
Ferruh Yigit <ferruh.yigit at amd.com> wrote:
> > Maintaining an offset-since-last-reset for counters is a control plane
> > thing, and shouldn't be in PMDs. (If MT-safe reset for SW-managed
> > counters are to be expected from the PMDs, we should have some helper
> > API to facilitate its efficient & correct-enough implementation.)
> >
>
> statistics reset works for HW devices, instead of removing statics reset
> I am for documenting API that it may be not reliable, I can send a patch
> for it.
>
> With above change, we can be more relax on stats update specially for
> soft drivers, and can convert atomic_add stats updates to "atomic load +
> add + atomic store".
>
> Does this plan make sense?
+1
More information about the dev
mailing list