[PATCH 2/2] net/gve: add standard and extended statistics
Stephen Hemminger
stephen at networkplumber.org
Fri Feb 10 21:14:45 CET 2023
On Fri, 10 Feb 2023 20:25:41 +0300
Levend Sayar <levendsayar at gmail.com> wrote:
> Accessing a stack variable is faster.
> So copying to given stats pointer will be done at once.
> But of course, given stats pointer can also be used.
I doubt there is an observable difference.
Access to a stack variable is offset from register.
Access to the stats (parameter) is offset from a different register.
The area reserved for stats will already be in cache since it was
just zero'd by the caller.
More information about the dev
mailing list