[dpdk-dev] [PATCH 0/4] deferred queue setup

Qi Zhang qi.z.zhang at intel.com
Mon Feb 12 05:53:10 CET 2018


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



More information about the dev mailing list