From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v5 30/31] net/ice: support advance RX/TX Date: Mon, 17 Dec 2018 23:02:40 +0000 Message-ID: <0e897238-d27c-ac1a-1ba8-1db6490affef@intel.com> References: <1542956179-80951-1-git-send-email-wenzhuo.lu@intel.com> <1545032259-77179-1-git-send-email-wenzhuo.lu@intel.com> <1545032259-77179-31-git-send-email-wenzhuo.lu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Qiming Yang , Xiaoyun Li , Jingjing Wu To: Wenzhuo Lu , dev@dpdk.org Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 801F61B9BD for ; Tue, 18 Dec 2018 00:02:44 +0100 (CET) In-Reply-To: <1545032259-77179-31-git-send-email-wenzhuo.lu@intel.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 12/17/2018 7:37 AM, Wenzhuo Lu wrote: > Add RX functions, scatter and bulk. > Add TX function, simple. > > Signed-off-by: Wenzhuo Lu > Signed-off-by: Qiming Yang > Signed-off-by: Xiaoyun Li > Signed-off-by: Jingjing Wu <...> > +ice_tx_free_bufs(struct ice_tx_queue *txq) > +{ > + struct ice_tx_entry *txep; > + uint16_t i; > + > + if ((txq->tx_ring[txq->tx_next_dd].cmd_type_offset_bsz & > + rte_cpu_to_le_64(ICE_TXD_QW1_DTYPE_M)) != > + rte_cpu_to_le_64(ICE_TX_DESC_DTYPE_DESC_DONE)) > + return 0; > + > + txep = &txq->sw_ring[txq->tx_next_dd - (txq->tx_rs_thresh - 1)]; > + > + for (i = 0; i < txq->tx_rs_thresh; i++) > + rte_prefetch0((txep + i)->mbuf); > + > + if (txq->offloads & DEV_TX_OFFLOAD_MBUF_FAST_FREE) { You can announce "Fast mbuf free" feature in .ini file if this is supported.