DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Pattan, Reshma" <reshma.pattan@intel.com>
To: "Simon Kågström" <simon.kagstrom@netinsight.net>,
	"dev@dpdk.org" <dev@dpdk.org>,
	"thomas.monjalon@6wind.com" <thomas.monjalon@6wind.com>
Subject: Re: [dpdk-dev] [PATCH / RFC ] ethdev: Allow rte_eth_dev_configure with zero RX/TX queues
Date: Fri, 20 May 2016 08:26:33 +0000	[thread overview]
Message-ID: <3AEA2BF9852C6F48A459DA490692831F0103538D@IRSMSX109.ger.corp.intel.com> (raw)
In-Reply-To: <573EAEE0.4020802@netinsight.net>



> -----Original Message-----
> From: Simon Kågström [mailto:simon.kagstrom@netinsight.net]
> Sent: Friday, May 20, 2016 7:30 AM
> To: Pattan, Reshma <reshma.pattan@intel.com>; dev@dpdk.org;
> thomas.monjalon@6wind.com
> Subject: Re: [dpdk-dev] [PATCH / RFC ] ethdev: Allow rte_eth_dev_configure
> with zero RX/TX queues
> 
> Ping? Any more comments on this?
> 

Hi, I don't have any objections, just let's wait if any other comments from committee. 

Thanks,
Reshma

> // Simon
> 
> On 2016-05-16 15:16, Simon Kågström wrote:
> > On 2016-05-16 14:43, Pattan, Reshma wrote:
> >>>> This was added to allow devices,  at least with one direction
> >>>> (RX/TX)
> >>> supported. As, devices with both directions disabled doesn't make  sense
> right?
> >>>
> >>> Well, not for running them, no. But this is a part of the shutdown
> >>> procedure between tests (I should have been more clear I guess).
> >>
> >> Yes I understood this. But I am not sure if you can use
> rte_eth_dev_configure(port, 0, 0) to free the resources.
> >> Can you check if you can use rte_eth_dev_rx_queue_stop/
> >> rte_eth_dev_tx_queue_stop to achieve the same, because they do take care
> of releasing mbufs, but doesn't free the queue's sw-ring and queue.
> >
> > But isn't that very strange behavior. Aren't the descriptor rings
> > allocated in rx_queue_setup()? If so, the sequence
> >
> >   rx_queue_stop(); // Release buffers
> >   rx_queue_start();
> >
> > would leave the descriptor ring empty after start, i.e., not able to
> > receive data.
> >
> > // Simon
> >

  reply	other threads:[~2016-05-20  8:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-16  9:33 Simon Kagstrom
2016-05-16 10:24 ` Pattan, Reshma
2016-05-16 10:32   ` Simon Kågström
2016-05-16 12:43     ` Pattan, Reshma
2016-05-16 13:16       ` Simon Kågström
2016-05-20  6:29         ` Simon Kågström
2016-05-20  8:26           ` Pattan, Reshma [this message]
2016-06-23 15:53 ` Thomas Monjalon
2018-12-20 23:34   ` Ferruh Yigit

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=3AEA2BF9852C6F48A459DA490692831F0103538D@IRSMSX109.ger.corp.intel.com \
    --to=reshma.pattan@intel.com \
    --cc=dev@dpdk.org \
    --cc=simon.kagstrom@netinsight.net \
    --cc=thomas.monjalon@6wind.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).