[dpdk-dev] [PATCH] net/enic: fix segfault due to static max number of queues

Ferruh Yigit ferruh.yigit at intel.com
Wed Jan 24 18:19:57 CET 2018


On 1/23/2018 1:05 AM, John Daley wrote:
> From: Hyong Youb Kim <hyonkim at cisco.com>
> 
> 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: ce93d3c36db0 ("net/enic: fix resource check failures when bonding devices")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Hyong Youb Kim <hyonkim at cisco.com>
> Reviewed-by: John Daley <johndale at cisco.com>

Applied to dpdk-next-net/master, thanks.


More information about the dev mailing list