From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH v2 14/40] bnxt: initial Rx ring code Date: Thu, 26 May 2016 11:52:00 +0100 Message-ID: <20160526105200.GF11928@bricha3-MOBL3> References: <1463179589-82681-1-git-send-email-stephen.hurd@broadcom.com> <1463179589-82681-14-git-send-email-stephen.hurd@broadcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Stephen Hurd Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 6FF202E8E for ; Thu, 26 May 2016 12:52:31 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1463179589-82681-14-git-send-email-stephen.hurd@broadcom.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, May 13, 2016 at 03:46:03PM -0700, Stephen Hurd wrote: > Initial implementation of rx_pkt_burst > Add code to allocate rings to bnxt_ring.c > > Signed-off-by: Stephen Hurd > Reviewed-by: Ajit Kumar Khaparde > --- > drivers/net/bnxt/Makefile | 1 + > drivers/net/bnxt/bnxt_ethdev.c | 3 +- > drivers/net/bnxt/bnxt_ring.c | 20 +- > drivers/net/bnxt/bnxt_rxq.c | 34 ++- > drivers/net/bnxt/bnxt_rxr.c | 338 +++++++++++++++++++++++ > drivers/net/bnxt/bnxt_rxr.h | 62 +++++ > drivers/net/bnxt/hsi_struct_def_dpdk.h | 474 +++++++++++++++++++++++++++++++++ > 7 files changed, 915 insertions(+), 17 deletions(-) > create mode 100644 drivers/net/bnxt/bnxt_rxr.c > create mode 100644 drivers/net/bnxt/bnxt_rxr.h > > + */ > + > +static inline struct rte_mbuf *__bnxt_alloc_rx_data(struct rte_mempool *mb) > +{ > + struct rte_mbuf *data; > + > + data = __rte_mbuf_raw_alloc(mb); This function is now deprecated and the version without "__" prefix should now be used instead. "rte_mbuf_raw_alloc()" > + __rte_mbuf_sanity_check(data, 0); raw_mbuf_raw_alloc already includes a call to sanity_check, so this can be removed. Perhaps the whole function __bnxt_alloc_rx_data() can be removed as it just seems to be duplicating rte_mbuf_raw_alloc(). Regards, /Bruce