From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH 1/7] net/bnxt: get rid of ff pools array and use the vnic info array Date: Wed, 19 Sep 2018 10:05:39 +0100 Message-ID: References: <20180901043254.51000-1-ajit.khaparde@broadcom.com> <20180901043254.51000-2-ajit.khaparde@broadcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Somnath Kotur , stable@dpdk.org To: Ajit Khaparde , dev@dpdk.org Return-path: In-Reply-To: <20180901043254.51000-2-ajit.khaparde@broadcom.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 9/1/2018 5:32 AM, Ajit Khaparde wrote: > From: Somnath Kotur > > There was no direct association between the rxq's vnic and the vnic_info[]. > Explicitly associate the two in bnxt_mq_rx_configure(). > > Fixes: f7c3d72afff7 ("net/bnxt: fix Rx ring count limitation") > Cc: stable@dpdk.org > > Signed-off-by: Somnath Kotur > Signed-off-by: Ajit Khaparde <...> > void bnxt_free_vnic_attributes(struct bnxt *bp) > { > struct bnxt_vnic_info *vnic; > + unsigned int i; > > - STAILQ_FOREACH(vnic, &bp->free_vnic_list, next) { > + for (i = 0; i < bp->nr_vnics; i++) { > if (vnic->rss_table) { Here vnic accessed without initial value [1], I guess intention was: "vnic = &bp->vnic_info[i];" before access. [1] .../drivers/net/bnxt/bnxt_vnic.c:93:7: error: variable 'vnic' is uninitialized when used here [-Werror,-Wuninitialized] if (vnic->rss_table) { ^~~~