From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v7 1/5] ethdev: support runtime queue setup Date: Mon, 23 Apr 2018 18:45:36 +0100 Message-ID: <2ad6b241-ce57-7c42-bed5-a81bc334045b@intel.com> References: <20180212045314.171616-1-qi.z.zhang@intel.com> <20180422115824.105219-1-qi.z.zhang@intel.com> <20180422115824.105219-2-qi.z.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: konstantin.ananyev@intel.com, dev@dpdk.org, beilei.xing@intel.com, jingjing.wu@intel.com, wenzhuo.lu@intel.com To: Qi Zhang , thomas@monjalon.net Return-path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id D7B2A1DBB for ; Mon, 23 Apr 2018 19:45:39 +0200 (CEST) In-Reply-To: <20180422115824.105219-2-qi.z.zhang@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 4/22/2018 12:58 PM, Qi Zhang wrote: > It's not possible to setup a queue when the port is started > because of a check in ethdev layer. New capability flags are > added in order to relax this check for devices which support > queue setup in runtime. The functions rte_eth_[rx|tx]_queue_setup > will raise an error only if the port is started and runtime setup > of queue is not supported. > > Signed-off-by: Qi Zhang > Acked-by: Konstantin Ananyev > --- > > v7: > - update default.init > - rename runtime_queue_setup_capa to dev_capa for generic. > - fix typo. > > v6: > - fix tx queue state check in rte_eth_tx_queue_setup > > > doc/guides/nics/features.rst | 18 ++++++++++++++++++ > doc/guides/nics/features/default.ini | 2 ++ > lib/librte_ether/rte_ethdev.c | 30 ++++++++++++++++++------------ > lib/librte_ether/rte_ethdev.h | 7 +++++++ > 4 files changed, 45 insertions(+), 12 deletions(-) > > diff --git a/doc/guides/nics/features.rst b/doc/guides/nics/features.rst > index 1b4fb979f..67d459f80 100644 > --- a/doc/guides/nics/features.rst > +++ b/doc/guides/nics/features.rst > @@ -892,7 +892,25 @@ Documentation describes performance values. > > See ``dpdk.org/doc/perf/*``. > > +.. _nic_features_runtime_rx_queue_setup: > > +Runtime Rx queue setup > +---------------------- > + > +Supports Rx queue setup after device started. > + > +* **[provides] rte_eth_dev_info**: ``dev_capa:DEV_CAPA_RUNTIME_RX_QUEUE_SETUP``. > +* **[related] API**: ``rte_eth_dev_info_get()``. > + > +.. _nic_features_runtime_tx_queue_setup: > + > +Runtime Tx queue setup > +---------------------- > + > +Supports Tx queue setup after device started. > + > +* **[provides] rte_eth_dev_info**: ``dev_capa:DEV_CAPA_RUNTIME_TX_QUEUE_SETUP``. > +* **[related] API**: ``rte_eth_dev_info_get()``. > > .. _nic_features_other: > > diff --git a/doc/guides/nics/features/default.ini b/doc/guides/nics/features/default.ini > index dae2ad776..dae80d52f 100644 > --- a/doc/guides/nics/features/default.ini > +++ b/doc/guides/nics/features/default.ini > @@ -78,3 +78,5 @@ x86-64 = > Usage doc = > Design doc = > Perf doc = > +Runtime Rx queue setup = > +Runtime Tx queue setup = The order of this file is the display order, can you please move these two new features somewhere close to queue or configuration related features?