All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Levend Sayar <levendsayar@gmail.com>
Cc: Junfeng Guo <junfeng.guo@intel.com>, dev@dpdk.org
Subject: Re: [PATCH 2/2] net/gve: add standard and extended statistics
Date: Fri, 10 Feb 2023 12:14:45 -0800	[thread overview]
Message-ID: <20230210121445.51b04e2b@hermes.local> (raw)
In-Reply-To: <20DC6215-2930-43A4-8C9A-8B8B90D8F43F@gmail.com>

On Fri, 10 Feb 2023 20:25:41 +0300
Levend Sayar <levendsayar@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.

      reply	other threads:[~2023-02-10 20:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-10 13:06 [PATCH 2/2] net/gve: add standard and extended statistics Levend Sayar
2023-02-10 16:34 ` Stephen Hemminger
2023-02-10 17:25   ` Levend Sayar
2023-02-10 20:14     ` Stephen Hemminger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230210121445.51b04e2b@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=junfeng.guo@intel.com \
    --cc=levendsayar@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.