On 1/23/2018 1:05 AM, John Daley wrote: > From: Hyong Youb Kim <hyon...@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: sta...@dpdk.org > > Signed-off-by: Hyong Youb Kim <hyon...@cisco.com> > Reviewed-by: John Daley <johnd...@cisco.com>
Applied to dpdk-next-net/master, thanks.