From: Keller, Jacob E <jacob.e.keller@intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [PATCH v2] fm10k: use fm10k_stats structures for per-queue statistics
Date: Fri, 26 Feb 2016 16:46:11 +0000 [thread overview]
Message-ID: <1456505171.28839.6.camel@intel.com> (raw)
In-Reply-To: <CAKgT0UcSSq9sdAUHkmNuPPG0tLm2U21ZrOVz=y8V+w-g9GFwow@mail.gmail.com>
On Thu, 2016-02-25 at 19:17 -0800, Alexander Duyck wrote:
> On Thu, Feb 25, 2016 at 3:56 PM, Jacob Keller <jacob.e.keller@intel.c
> om> wrote:
> >
> > This will allow us numerous advantages, including
> >
> > (a) rework the per-queue stats to only display active queues,
> > reducing
> > ????clutter on the output. This is important since we often don't
> > have
> > ????all possible queues enabled.
> >
> > (b) use the new streamlined helper functions, reducing duplicate
> > code
> > ????and increasing readability of the stats logic
> >
> > (c) add the additional per-tx and per-rx statistics when
> > ????debug-statistics is enabled, which may be helpful for future
> > debug
> > ????work.
> >
> > The primary motivation for this change is (a), though (b) and (c)
> > are
> > useful additions which were noticed while developing the change.
> >
> > Note that this code currently assumes we have the same number of Tx
> > and
> > Rx queues which should be true of our driver pretty much always.
> > Even if
> > there are a non equal number of Tx and Rx queues, the only result
> > will
> > be a few extra statistics displaying 0s. This is better than the
> > current
> > setup which shows every disabled queue with all 0s.
> >
> > Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
> So how does this solve the possible race between changing the number
> of queues and the various reads to get either the length of the
> stats,
> the strings, or the actual stats themselves???The original reason for
> having to do the maximum number of queues every time was to account
> for the fact that the queues could change between calls so we had to
> keep the length fixed.??Was there a new function added that resolved
> that or was this overlooked?
Overlooked, but I have a possible solution for that I will look into.
Thanks,
Jake
prev parent reply other threads:[~2016-02-26 16:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-25 23:56 [Intel-wired-lan] [PATCH v2] fm10k: use fm10k_stats structures for per-queue statistics Jacob Keller
2016-02-26 3:17 ` Alexander Duyck
2016-02-26 16:46 ` Keller, Jacob E [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=1456505171.28839.6.camel@intel.com \
--to=jacob.e.keller@intel.com \
--cc=intel-wired-lan@osuosl.org \
/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.