numam-dpdk/drivers
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
..
bbdev mk: add experimental tag check 2018-01-29 23:35:29 +01:00
bus mk: add experimental tag check 2018-01-29 23:35:29 +01:00
crypto crypto/qat: fix truncated response ring value 2018-01-29 20:22:33 +01:00
event mk: add experimental tag check 2018-01-29 23:35:29 +01:00
mempool bus/fslmc: register platform HW mempool on runtime 2018-01-29 19:02:05 +01:00
net net/enic: fix crash due to static max number of queues 2018-01-29 10:04:28 +01:00
Makefile bb/null: add null base band device driver 2018-01-19 01:44:25 +01:00