From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by dpdk.org (Postfix) with ESMTP id 2B6C58E69 for ; Tue, 20 Oct 2015 00:42:57 +0200 (CEST) Received: by pabrc13 with SMTP id rc13so203381631pab.0 for ; Mon, 19 Oct 2015 15:42:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=feGplmVnMP7ExczmvMwrWlF4LLjhQY/PYbz3RgKcFOM=; b=c4m4xfFUJi6+92mFHSwLhr42OaLfKu5z/NiKeFTuF4ICVrhPRIcj8ad+KkpITwaUY5 NjC810W/rCdQNI+an0E68RgLQVRUbGwZd5yP/1u13FEH5ZqMr0PHOA8FiX6Mjzm8sRuE C1wNwhRzzSmyn9WsSILVZ/+PMa4xWn3GyM4T0DEsMz9Ww80zQWPVTSeC7x296/Vj4bB8 aNej8+L8dwXy7wg5KVhrKbRbgsZrTxc/qtCiVrCDVhZrPxSy58wdQHJp16b9N3ETLIj6 24STT88xnoTeEKKzVQV9/vfLFA3w4O93+QBW60bB+N6t7fs/9PUU4LPzWDnvYh5QZ+gu UcqQ== X-Gm-Message-State: ALoCoQkcDZCjqKcZoPW/Pdk06OmmGsEN3ecyXOg4s1lGDb4dNE2WKIFOIup8Fzzvp0ePw4n/WMEF X-Received: by 10.66.66.196 with SMTP id h4mr36030532pat.77.1445294576438; Mon, 19 Oct 2015 15:42:56 -0700 (PDT) Received: from xeon-e3 (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id ns1sm495707pbc.67.2015.10.19.15.42.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Oct 2015 15:42:56 -0700 (PDT) Date: Mon, 19 Oct 2015 15:43:04 -0700 From: Stephen Hemminger To: Amine Kherbouche Message-ID: <20151019154304.79e1a92f@xeon-e3> In-Reply-To: <1445292384-19815-6-git-send-email-amine.kherbouche@6wind.com> References: <1443729293-20753-2-git-send-email-konstantin.ananyev@intel.com> <1445292384-19815-1-git-send-email-amine.kherbouche@6wind.com> <1445292384-19815-6-git-send-email-amine.kherbouche@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [dpdk-dev, PATCHv6 5/6] i40e: enhance eth_(rxq|txq)_info_get to retrieve more queue information X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 22:42:57 -0000 On Tue, 20 Oct 2015 00:06:23 +0200 Amine Kherbouche wrote: > According to new fields in struct rte_eth_rxq_info, those are filled to > add additional information about queue descriptors. > > Signed-off-by: Amine Kherbouche > --- > drivers/net/i40e/i40e_rxtx.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c > index fa1451e..e958d56 100644 > --- a/drivers/net/i40e/i40e_rxtx.c > +++ b/drivers/net/i40e/i40e_rxtx.c > @@ -3075,6 +3075,8 @@ i40e_rxq_info_get(struct rte_eth_dev *dev, uint16_t queue_id, > qinfo->mp = rxq->mp; > qinfo->scattered_rx = dev->data->scattered_rx; > qinfo->nb_desc = rxq->nb_rx_desc; > + qinfo->used_desc = (uint16_t)i40e_dev_rx_queue_count(dev, queue_id); Cast here is unnecessary. C does the necessary type conversion.