From mboxrd@z Thu Jan 1 00:00:00 1970 From: Qi Zhang Subject: [PATCH 0/4] deferred queue setup Date: Mon, 12 Feb 2018 12:53:10 +0800 Message-ID: <20180212045314.171616-1-qi.z.zhang@intel.com> Cc: dev@dpdk.org, jingjing.wu@intel.com, beilei.xing@intel.com, arybchenko@solarflare.com, konstantin.ananyev@intel.com, Qi Zhang To: thomas@monjalon.net Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 2AB0E1B316 for ; Mon, 12 Feb 2018 05:53:22 +0100 (CET) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" According to exist implementation,rte_eth_[rx|tx]_queue_setup will always return fail if device is already started(rte_eth_dev_start). This can't satisfied the usage when application want to deferred setup part of the queues while keep traffic running on those queues already be setup. example: rte_eth_dev_config(nb_rxq = 2, nb_txq =2) rte_eth_rx_queue_setup(idx = 0 ...) rte_eth_rx_queue_setup(idx = 0 ...) rte_eth_dev_start(...) /* [rx|tx]_burst is ready to start on queue 0 */ rte_eth_rx_queue_setup(idx=1 ...) /* fail*/ Basically this is not a general hardware limitation, because for NIC like i40e, ixgbe, it is not necessary to stop the whole device before configure a fresh queue or reconfigure an exist queue with no traffic on it. The patch let etherdev driver expose the capability flag through rte_eth_dev_info_get when it support deferred queue configuraiton, then base on these flag, rte_eth_[rx|tx]_queue_setup could decide continue to setup the queue or just return fail when device already started. Qi Zhang (4): ether: support deferred queue setup app/testpmd: add parameters for deferred queue setup app/testpmd: add command for queue setup net/i40e: enable deferred queue setup app/test-pmd/cmdline.c | 136 ++++++++++++++++++++++++++++ app/test-pmd/parameters.c | 29 ++++++ app/test-pmd/testpmd.c | 8 +- app/test-pmd/testpmd.h | 2 + doc/guides/nics/features.rst | 8 ++ doc/guides/testpmd_app_ug/run_app.rst | 12 +++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 ++ drivers/net/i40e/i40e_ethdev.c | 6 ++ drivers/net/i40e/i40e_rxtx.c | 62 ++++++++++++- lib/librte_ether/rte_ethdev.c | 30 +++--- lib/librte_ether/rte_ethdev.h | 8 ++ 11 files changed, 292 insertions(+), 16 deletions(-) -- 2.13.6