From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id C03A12BA6 for ; Fri, 1 Apr 2016 16:06:04 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP; 01 Apr 2016 07:04:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,427,1455004800"; d="scan'208";a="936276758" Received: from fanzhan2-mobl.ger.corp.intel.com (HELO [10.237.220.93]) ([10.237.220.93]) by fmsmga001.fm.intel.com with ESMTP; 01 Apr 2016 07:04:33 -0700 From: "Zhang, Roy Fan" To: Thomas Monjalon Cc: dev@dpdk.org References: <1459518117-23944-1-git-send-email-roy.fan.zhang@intel.com> <1459518117-23944-4-git-send-email-roy.fan.zhang@intel.com> <2420426.ojDceOkhvu@xps13> Message-ID: <56FE7FF0.9040600@intel.com> Date: Fri, 1 Apr 2016 15:04:32 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <2420426.ojDceOkhvu@xps13> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 3/3] port: code clean-up 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: Fri, 01 Apr 2016 14:06:05 -0000 Hi Thomas, The reason for removing RTE_NEXT_ABI here is caused by sink port, which is not wrapped by RTE_NEXT_ABI macro. If the user disable RTE_NEXT_ABI but enable RTE_PORT_PCAP, the original code will cause the compile error as pcap library is missing. Regards, Fan On 01/04/2016 14:56, Thomas Monjalon wrote: > 2016-04-01 14:41, Fan Zhang: >> --- a/mk/rte.app.mk >> +++ b/mk/rte.app.mk >> @@ -92,9 +92,7 @@ endif >> ifeq ($(CONFIG_RTE_LIBRTE_VHOST_USER),n) >> _LDLIBS-$(CONFIG_RTE_LIBRTE_VHOST) += -lfuse >> endif >> -ifeq ($(CONFIG_RTE_NEXT_ABI),y) >> _LDLIBS-$(CONFIG_RTE_PORT_PCAP) += -lpcap >> -endif > Why removing NEXT_ABI here? > The pcap port cannot work without it because of > > +#ifdef RTE_NEXT_ABI > + > + /** The full path of the pcap file to read packets from */ > + char *file_name; > + /** The number of bytes to be read from each packet in the > + * pcap file. If this value is 0, the whole packet is read; > + * if it is bigger than packet size, the generated packets > + * will contain the whole packet */ > + uint32_t n_bytes_per_pkt; > + > +#endif >