From: Ferruh Yigit Subject: Re: [PATCH] net/enic: fix segfault due to static max number of queues Date: Wed, 24 Jan 2018 17:19:57 +0000 Message-ID: References: <20180123010529.17748-1-johndale@cisco.com> <20180123010529.17748-2-johndale@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, Hyong Youb Kim , stable@dpdk.org To: John Daley Return-path: In-Reply-To: <20180123010529.17748-2-johndale@cisco.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 1/23/2018 1:05 AM, John Daley wrote: > From: Hyong Youb Kim > > 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@dpdk.org > > Signed-off-by: Hyong Youb Kim > Reviewed-by: John Daley Applied to dpdk-next-net/master, thanks.