Go to file
Chengchang Tang 25340d5342 app/testpmd: fix descriptor id check
The number of desc is a per queue configuration. But in the check
function, nb_txd & nb_rxd are used to check whether the desc_id is
valid. nb_txd & nb_rxd are the global configuration of number of desc.
If the queue configuration is changed by cmdline liks: "port config xx
txq xx ring_size xxx", the real value will be changed.

This patch use the real value to check whether the desc_id is valid.
And if these are not configured by user. It will use the default value
to check it, since the rte_eth_rx_queue_setup & rte_eth_tx_queue_setup
will use a default value to configure the queue if nb_rx_desc or
nb_tx_desc is zero.

Fixes: af75078fec ("first public release")
Cc: stable@dpdk.org

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2020-09-30 19:19:13 +02:00
.ci
app app/testpmd: fix descriptor id check 2020-09-30 19:19:13 +02:00
buildtools doc: hide sphinx standard output 2020-09-30 16:02:13 +02:00
config build: remove deprecated cpuflag macros 2020-09-25 11:13:57 +02:00
devtools devtools: remove legacy flags from includes check 2020-10-01 16:41:20 +02:00
doc net/octeontx2: support VLAN insert and strip actions 2020-09-30 19:19:11 +02:00
drivers common/sfc_efx/base: handle descriptor proxy queue events 2020-09-30 19:19:13 +02:00
examples examples/pipeline: add VXLAN encapsulation example 2020-10-01 19:04:42 +02:00
kernel kni: fix build with Linux 5.9 2020-09-29 12:38:04 +02:00
lib net/qede: define PCI config space specific osals 2020-09-30 19:19:11 +02:00
license
usertools
.editorconfig
.gitattributes
.gitignore
.travis.yml ci: add tests jobs in aarch64 vm 2020-09-30 21:52:54 +02:00
ABI_VERSION
MAINTAINERS net/sfc: introduce common driver library 2020-09-30 19:19:08 +02:00
Makefile
meson_options.txt
meson.build
README
VERSION

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org