From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 3E7FB28F3 for ; Wed, 15 Mar 2017 15:31:34 +0100 (CET) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP; 15 Mar 2017 07:31:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,168,1486454400"; d="scan'208";a="77128020" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.122]) ([10.237.220.122]) by fmsmga006.fm.intel.com with ESMTP; 15 Mar 2017 07:31:32 -0700 To: Pascal Mazon References: <1488904298-31395-1-git-send-email-pascal.mazon@6wind.com> <972357ac96dcfa64ecd30bb2350f8282b858af03.1489479553.git.pascal.mazon@6wind.com> <725e6ac6-acc5-7adc-02a7-f1a6bf79f7bd@intel.com> <20170315144412.3a76d727@paques.dev.6wind.com> Cc: keith.wiles@intel.com, dev@dpdk.org From: Ferruh Yigit Message-ID: <4146f2f5-b699-9412-92e0-aa7479e4996c@intel.com> Date: Wed, 15 Mar 2017 14:31:32 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170315144412.3a76d727@paques.dev.6wind.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v4 7/8] net/tap: add packet type management X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2017 14:31:35 -0000 On 3/15/2017 1:44 PM, Pascal Mazon wrote: > On Wed, 15 Mar 2017 13:35:44 +0000 > Ferruh Yigit wrote: > >> On 3/14/2017 8:22 AM, Pascal Mazon wrote: >>> Advertize packet types supported by the librte_net. >>> >>> Signed-off-by: Pascal Mazon >> >> <...> >> >>> >>> #include >>> #include >>> @@ -228,6 +229,8 @@ pmd_rx_burst(void *queue, struct rte_mbuf >>> **bufs, uint16_t nb_pkts) mbuf->data_len = len; >>> mbuf->pkt_len = len; >>> mbuf->port = rxq->in_port; >>> + mbuf->packet_type = rte_net_get_ptype(mbuf, NULL, >>> + >>> RTE_PTYPE_ALL_MASK); >> >> This breaks shared library build [1], now librte_net also needs to be >> linked against PMD, this can be done easily by adding library as >> dependency [2] to PMD. >> >> >> [1] >> rte_eth_tap.o: In function `pmd_rx_burst': >> .../drivers/net/tap/rte_eth_tap.c:(.text+0x863): undefined reference >> to `rte_net_get_ptype' >> >> >> [2] >> --- a/drivers/net/tap/Makefile >> +++ b/drivers/net/tap/Makefile >> @@ -53,5 +53,6 @@ DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_TAP) += >> lib/librte_mbuf DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_TAP) += >> lib/librte_mempool DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_TAP) += >> lib/librte_ether DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_TAP) += >> lib/librte_kvargs +DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_TAP) += >> lib/librte_net >> >> include $(RTE_SDK)/mk/rte.lib.mk > > Indeed! > > I'll fix that and send a new version (rebased on the latest > next-net, following adrien's changes to tap PMD). Can you also rebase tap rte_flow one [1], after this one please? Because that set effected from both this one and Adrien's changes. [1] http://dpdk.org/dev/patchwork/patch/21757/ [4 patches] Thanks, ferruh > > Regards, > Pascal >