From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 65DA156A1 for ; Mon, 27 Jun 2016 20:05:13 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 27 Jun 2016 11:04:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,537,1459839600"; d="scan'208";a="1010639851" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.221.17]) ([10.237.221.17]) by fmsmga002.fm.intel.com with ESMTP; 27 Jun 2016 11:04:44 -0700 To: =?UTF-8?B?5oiQ5qGm6ICF5Yir?= <373755701@qq.com>, users , "Damjan Marion (damarion)" References: From: Ferruh Yigit Message-ID: <57716ABB.4030406@intel.com> Date: Mon, 27 Jun 2016 19:04:43 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-users] my problem about ixgbe_rx_vec_dev_conf_condition_check is called by ixgbe_set_rx_function in ixgbe X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 18:05:13 -0000 On 5/27/2016 2:32 PM, ³ÉèëÕß±ð wrote: > hello, > > > firstly ,gcc version is 3.4.3. > > > "PMD: ixgbe_set_rx_function(): Port[0] doesn't meet Vector Rx preconditions or RTE_IXGBE_INC_VECTOR is not enabled" is outputed while running l2fwd and l3fwd ,i GDB the l2fwd and l3fwd. > i found ixgbe_rx_vec_dev_conf_condition_check has two definition ,one is: > int __attribute__((weak)) > ixgbe_rx_vec_dev_conf_condition_check(struct rte_eth_dev __rte_unused *dev) > { > return -1; > } > > > the other is: > int __attribute__((cold)) > ixgbe_rx_vec_dev_conf_condition_check(struct rte_eth_dev *dev) > { > .... > } > when i GDB the EXE, port_conf.rxmode.hw_ip_checksum was set to 0 . > ixgbe_set_rx_function call the former at every turn ,i want to know why . > > > any help would be appreciated. > I don't know if this is from same person/team, but if not please check following mail thread for same issue: http://dpdk.org/ml/archives/dev/2016-June/042323.html If issue is still valid for you: Briefly, weak function is defined for the case RTE_IXGBE_INC_VECTOR config option not enabled. Which one to link against will be chosen on build time, if app linked against first one, I would guess RTE_IXGBE_INC_VECTOR is not enabled, can you please share the output of: objdump -x librte_pmd_i40e.a| grep i40e_rx_vec_dev_conf_condition_check Thanks, ferruh