From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v3 3/8] net/ice: support vector SSE in RX Date: Fri, 15 Mar 2019 17:53:37 +0000 Message-ID: <7ccb7c52-b475-6d43-753f-73a917a7b3f6@intel.com> References: <1551340136-83843-1-git-send-email-wenzhuo.lu@intel.com> <1552630975-62900-1-git-send-email-wenzhuo.lu@intel.com> <1552630975-62900-4-git-send-email-wenzhuo.lu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: Wenzhuo Lu , dev@dpdk.org Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 3DA752BAC for ; Fri, 15 Mar 2019 18:53:40 +0100 (CET) In-Reply-To: <1552630975-62900-4-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 3/15/2019 6:22 AM, Wenzhuo Lu wrote: > Signed-off-by: Wenzhuo Lu <...> > @@ -305,6 +305,7 @@ CONFIG_RTE_LIBRTE_ICE_DEBUG_TX=n > CONFIG_RTE_LIBRTE_ICE_DEBUG_TX_FREE=n > CONFIG_RTE_LIBRTE_ICE_RX_ALLOW_BULK_ALLOC=y > CONFIG_RTE_LIBRTE_ICE_16BYTE_RX_DESC=n > +CONFIG_RTE_LIBRTE_ICE_INC_VECTOR=y Meson seems setting this config automatically. Do we need this compile time option at all? Would it work if we replace this with a device arg, which can be used to disable vector path if set, and 'ice_rx_vec_dev_check()' can check it? <...> > @@ -0,0 +1,155 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(c) 2019 Intel Corporation > + */ > + > +#ifndef _ICE_RXTX_VEC_COMMON_H_ > +#define _ICE_RXTX_VEC_COMMON_H_ > + > +#include "ice_rxtx.h" > + > +static inline uint16_t > +reassemble_packets(struct ice_rx_queue *rxq, struct rte_mbuf **rx_bufs, > + uint16_t nb_bufs, uint8_t *split_flags) > +{ > + struct rte_mbuf *pkts[ICE_VPMD_RX_BURST] = {0}; /*finished pkts*/ > + struct rte_mbuf *start = rxq->pkt_first_seg; > + struct rte_mbuf *end = rxq->pkt_last_seg; > + unsigned pkt_idx, buf_idx; There are checkpatch warnings for using 'unsigned int' instead of 'unsigned', can you please fix them? There are a few of them.