Go to file
Hyong Youb Kim 6c45c33058 net/enic: fix crash due to static max number of queues
ENIC_CQ_MAX, ENIC_WQ_MAX and others are arbitrary values that
prevent the app from using more queues when they are available on
hardware. Remove them and dynamically allocate vnic_cq and such
arrays to accommodate all available hardware queues.

As a side effect of removing ENIC_CQ_MAX, this commit fixes a segfault
that would happen when the app requests more than 16 CQs, because
enic_set_vnic_res() does not consider ENIC_CQ_MAX. For example, the
following command causes a crash.

testpmd -- --rxq=16 --txq=16

Fixes: ce93d3c36d ("net/enic: fix resource check failures when bonding devices")
Cc: stable@dpdk.org

Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
2018-01-29 10:04:28 +01:00
app app/crypto-perf: fix out-of-bounds array access 2018-01-29 20:22:33 +01:00
buildtools buildtools: add script to check experimental API exports 2018-01-29 22:44:00 +01:00
config bus/fslmc: register platform HW mempool on runtime 2018-01-29 19:02:05 +01:00
devtools bb/turbo_sw: add software turbo driver 2018-01-19 01:44:25 +01:00
doc doc: add i40e queue region support to release notes 2018-01-29 10:04:28 +01:00
drivers net/enic: fix crash due to static max number of queues 2018-01-29 10:04:28 +01:00
examples examples/ipsec_secgw: fix security session 2018-01-29 20:22:33 +01:00
lib ethdev: move internal callback list definition 2018-01-29 10:04:28 +01:00
license license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00
mk mk: add experimental tag check 2018-01-29 23:35:29 +01:00
pkg
test test/crypto: improve NULL authentication validation 2018-01-29 20:22:33 +01:00
usertools tools: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
.gitattributes
.gitignore
GNUmakefile license: use SPDX tag in root makefile 2018-01-04 22:41:38 +01:00
MAINTAINERS maintainers: update for cryptodev 2018-01-30 00:20:31 +01:00
Makefile license: use SPDX tag in root makefile 2018-01-04 22:41:38 +01:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00

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