DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Lu, Wenzhuo" <wenzhuo.lu@intel.com>
To: Mohammad El-Shabani <mohammad.elshabani@gmail.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] librte_pmd_ixgbe implementation of	ixgbe_dev_rx_queue_count
Date: Tue, 29 Mar 2016 02:22:11 +0000	[thread overview]
Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09090343FAB9@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <CAF_W8bccw4YAXNEVFwdTfWoFW_ZdrspTNVdtynigtAQLa4zsDQ@mail.gmail.com>

Hi Mohammad,


> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Mohammad El-Shabani
> Sent: Tuesday, March 29, 2016 9:45 AM
> To: dev@dpdk.org
> Subject: [dpdk-dev] librte_pmd_ixgbe implementation of
> ixgbe_dev_rx_queue_count
> 
> Hi,
> Looking into why it hurts performance, I see that ixgbe_dev_rx_queue_count is
> implemented a scan of elements of rx descriptors, which is very expensive. I am
> wondering why its implemented the way it is. Could it not just read the head
> location from the driver?
Not sure about the history. But to my opinion it's a control plane ops not a data plane ops. Maybe the reason is the author doesn't care about the performance too much.
As you have a good idea, would you like to share it with us? Thanks in advance:)

> 
> Thanks!
> Mohammad El-Shabani

  reply	other threads:[~2016-03-29  2:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-29  1:45 Mohammad El-Shabani
2016-03-29  2:22 ` Lu, Wenzhuo [this message]
2016-03-29  9:31 ` Bruce Richardson
2016-03-29 16:54   ` Stephen Hemminger
2016-03-30 14:23     ` Bruce Richardson

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=6A0DE07E22DDAD4C9103DF62FEBC09090343FAB9@shsmsx102.ccr.corp.intel.com \
    --to=wenzhuo.lu@intel.com \
    --cc=dev@dpdk.org \
    --cc=mohammad.elshabani@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).