[PATCH] ethdev: document that stats reset APIs are not thread-safe
Stephen Hemminger
stephen at networkplumber.org
Mon Apr 29 17:33:45 CEST 2024
On Mon, 29 Apr 2024 08:20:13 +0200
Morten Brørup <mb at smartsharesystems.com> wrote:
> > turn talk the control plane, which in turn would talk to the data plane
> > (including <rte_ethdev.h>).
> >
> > Either the control plane or the O&M layer could keep track of a reset
> > offset. Doesn't have to be on the PMD level.
>
> Exactly.
>
> Snapshotting the "reset" offset in the control plane has many advantages.
>
> Let's promote that design pattern, rather than trying to work around different quirks required by different drivers.
>
The other thing that can help in software drivers is keeping per-queue stats.
More information about the dev
mailing list