From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Zhang, Qi Z" Subject: Re: [PATCH v2 3/8] net/ice: support vector SSE in RX Date: Mon, 11 Mar 2019 03:26:46 +0000 Message-ID: <039ED4275CED7440929022BC67E706115334A3D6@SHSMSX103.ccr.corp.intel.com> References: <1551340136-83843-1-git-send-email-wenzhuo.lu@intel.com> <1551682408-107569-1-git-send-email-wenzhuo.lu@intel.com> <1551682408-107569-4-git-send-email-wenzhuo.lu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "Lu, Wenzhuo" To: "Lu, Wenzhuo" , "dev@dpdk.org" Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 95A2111A4 for ; Mon, 11 Mar 2019 04:26:50 +0100 (CET) In-Reply-To: <1551682408-107569-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" Hi: > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Wenzhuo Lu > Sent: Monday, March 4, 2019 2:53 PM > To: dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: [dpdk-dev] [PATCH v2 3/8] net/ice: support vector SSE in RX >=20 > Signed-off-by: Wenzhuo Lu > --- ..... > + > + if (!ice_rx_vec_dev_check(dev)) { > + for (i =3D 0; i < dev->data->nb_rx_queues; i++) { > + rxq =3D dev->data->rx_queues[i]; > + (void)ice_rxq_vec_setup(rxq); > + } > + PMD_DRV_LOG(DEBUG, "Using Vector Rx (port %d).", > + dev->data->port_id); > + dev->rx_pkt_burst =3D ice_recv_pkts_vec; > + > + return; > + } > +#endif >=20 Since vPMD is only implemented on x86, I think the logic to setup vector pa= th could be wrapped by compile option #ifdef ARCH_X86,=20 otherwise I guess there will be some compile error on other platform, for e= xample the function ice_rx_vec_dev_check is only defined in ice_rxtx_vec_ss= e.c