From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0F630A0559 for ; Tue, 17 Mar 2020 03:03:49 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5D3C51C0BE; Tue, 17 Mar 2020 03:03:48 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id BD5AB1C07B for ; Tue, 17 Mar 2020 03:03:45 +0100 (CET) IronPort-SDR: LhwRctI80uxcR2jj66GrDyquVytkYwdRNrxBahC1kybX55e9kvPLAduHmpWFEkYPIXUQh3bMIb 4R+btvBUxQMA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2020 19:03:44 -0700 IronPort-SDR: 5ISmlGgi1DUy7HeHOMhkb9mGp4xd12TeXF+mPLyzDjh3j5vnifHMjQ97tgd10/iaz/fXT4LBcx fxH8PD/q6rNw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,562,1574150400"; d="scan'208,217";a="290869746" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by FMSMGA003.fm.intel.com with ESMTP; 16 Mar 2020 19:03:43 -0700 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 16 Mar 2020 19:03:43 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX605.ccr.corp.intel.com (10.109.6.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 17 Mar 2020 10:03:41 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.1713.004; Tue, 17 Mar 2020 10:03:41 +0800 From: "Li, Xiaoyun" To: Puneet Singh , "users@dpdk.org" Thread-Topic: [dpdk-users] Issue while running DPDK19.11 test-pmd with Intel X722 Nic Thread-Index: AdX7kvbHMUC1up3+QnalU8YWSjWouwAakYHA Date: Tue, 17 Mar 2020 02:03:40 +0000 Message-ID: <3b14667cd1f44bb4986523b62a1957e2@intel.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Issue while running DPDK19.11 test-pmd with Intel X722 Nic X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi For driver, you can set the log level as debug. Replace the RTE_LOG_NOTICE = with RTE_LOG_DEBUG in the following codes. This will show all PMD_INIT_LOG() and PMD_DRV_LOG() i40e_logtype_init =3D rte_log_register("pmd.net.i40e.init"); if (i40e_logtype_init >=3D 0) rte_log_set_level(i40e_logtype_init, RTE_LOG_= NOTICE); i40e_logtype_driver =3D rte_log_register("pmd.net.i40e.drive= r"); if (i40e_logtype_driver >=3D 0) rte_log_set_level(i40e_logtype_driver, RTE_LO= G_NOTICE); And you can turn on the rx/tx debug if you need to debug tx/rx. In config/common_base, CONFIG_RTE_LIBRTE_I40E_DEBUG_RX=3Dy CONFIG_RTE_LIBRTE_I40E_DEBUG_TX=3Dy CONFIG_RTE_LIBRTE_I40E_DEBUG_TX_FREE=3Dy Best Regards Xiaoyun Li From: Puneet Singh Sent: Monday, March 16, 2020 21:02 To: Li, Xiaoyun ; users@dpdk.org Subject: RE: [dpdk-users] Issue while running DPDK19.11 test-pmd with Intel= X722 Nic Hi Xiaoyun Li , With changes you suggested ,Testpmd works fine on my setup. But With my own application, the port is detected properly, the queue setup= to NIC also does not give any error. But my application is not getting any packets on the rx burst polls. Any suggestions on what is the best way to debug this eg. can some logs be = enabled at PMD to see what setting is wrong etc. ? Thanks & Regards Puneet Singh From: Puneet Singh > Sent: 13 March 2020 10:05 To: Li, Xiaoyun >; users@= dpdk.org Subject: Re: [dpdk-users] Issue while running DPDK19.11 test-pmd with Intel= X722 Nic Hi, Thanks a lot for information,I will try these steps with dpdk 19.11 and upd= ate. Regards Puneet Singh Get Outlook for Android ________________________________ From: Li, Xiaoyun > Sent: Friday, 13 March, 2020, 9:00 am To: Puneet Singh; users@dpdk.org Subject: RE: [dpdk-users] Issue while running DPDK19.11 test-pmd with Intel= X722 Nic Hi It is because that X722 doesn't support I40E_HW_FLAG_802_1AD_CAPABLE with n= ew firmware. This is fixed in 20.02 with base code patch update. This commit: 37b091c75b= 13d2f26359be9b77adbc33c55a7581. If you have to use 19.11. You need to add the following in eth_i40e_dev_ini= t(): - if (hw->device_id =3D=3D I40E_DEV_ID_SFP_X722) + if (hw->mac.type =3D=3D I40E_MAC_X722) hw->flags &=3D ~I40E_HW_FLAG_802_1AD_CAPABLE; Best Regards Xiaoyun Li > -----Original Message----- > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Puneet Singh > Sent: Wednesday, March 11, 2020 15:25 > To: users@dpdk.org > Cc: Puneet Singh > > Subject: [dpdk-users] Issue while running DPDK19.11 test-pmd with Intel X= 722 > Nic > > Hi Everyone , > > I am trying to run test-pmd with below mentioned nic card but getting fol= lowing > error . Can anyone please help me to resolve this issue. > > EAL: probe driver: 8086:37d3 net_i40e > i40e_vlan_tpid_set(): Set switch config failed aq_err: 14 > eth_i40e_dev_init(): Failed to set the default outer VLAN ether type > EAL: ethdev initialisation failedEAL: Requested device 0000:b5:00.0 canno= t be > used > EAL: PCI device 0000:b5:00.1 on NUMA socket 0 > EAL: probe driver: 8086:37d3 net_i40e > testpmd: No probed ethernet devices > Interactive-mode selected > Set mac packet forwarding mode > testpmd: create a new mbuf pool : n=3D267456, size=3D= 2176, > socket=3D0 > testpmd: preferred mempool ops selected: ring_mp_mc Done > > > SETUP Details : > > DPDK 19.11 > > NIC : > > b5:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection= X722 > for 10GbE SFP+ [8086:37d3] (rev 04) i40e Driver and Firmware Version : > i40e: Intel(R) 40-10 Gigabit Ethernet Connection Network Driver - version= 2.9.21 > [101414.147635] i40e: Copyright(c) 2013 - 2019 Intel Corporation. > [101414.162733] i40e 0000:b5:00.1: fw 4.0.53196 api 1.8 nvm 4.10 0x80001a= 17 > 1.2145.0 [101414.165982] i40e 0000:b5:00.1: MAC address: 08:3a:88:15:f0:7= b > [101414.166232] i40e 0000:b5:00.1: FW LLDP is disabled [101414.166289] i4= 0e > 0000:b5:00.1: DCB is not supported or FW LLDP is disabled [101414.166290] > i40e 0000:b5:00.1: DCB init failed -64, disabled > > > modinfo i40e > filename: /lib/modules/3.10.0- > 957.el7.x86_64/updates/drivers/net/ethernet/intel/i40e/i40e.ko > version: 2.9.21 > license: GPL > description: Intel(R) 40-10 Gigabit Ethernet Connection Network Driver > author: Intel Corporation, > > retpoline: Y > rhelversion: 7.6 > srcversion: FA2B2ABB57C568002DF6CFC > alias: pci:v00008086d0000158Bsv*sd*bc*sc*i* > alias: pci:v00008086d0000158Asv*sd*bc*sc*i* > alias: pci:v00008086d000037D3sv*sd*bc*sc*i* > alias: pci:v00008086d000037D2sv*sd*bc*sc*i* > alias: pci:v00008086d000037D1sv*sd*bc*sc*i* > alias: pci:v00008086d000037D0sv*sd*bc*sc*i* > alias: pci:v00008086d000037CFsv*sd*bc*sc*i* > alias: pci:v00008086d000037CEsv*sd*bc*sc*i* > alias: pci:v00008086d00000D58sv*sd*bc*sc*i* > alias: pci:v00008086d00000CF8sv*sd*bc*sc*i* > alias: pci:v00008086d00001588sv*sd*bc*sc*i* > alias: pci:v00008086d00001587sv*sd*bc*sc*i* > alias: pci:v00008086d0000104Fsv*sd*bc*sc*i* > alias: pci:v00008086d0000104Esv*sd*bc*sc*i* > alias: pci:v00008086d000015FFsv*sd*bc*sc*i* > alias: pci:v00008086d00001589sv*sd*bc*sc*i* > alias: pci:v00008086d00001586sv*sd*bc*sc*i* > alias: pci:v00008086d00001585sv*sd*bc*sc*i* > alias: pci:v00008086d00001584sv*sd*bc*sc*i* > alias: pci:v00008086d00001583sv*sd*bc*sc*i* > alias: pci:v00008086d00001581sv*sd*bc*sc*i* > alias: pci:v00008086d00001580sv*sd*bc*sc*i* > alias: pci:v00008086d00001574sv*sd*bc*sc*i* > alias: pci:v00008086d00001572sv*sd*bc*sc*i* > depends: ptp > vermagic: 3.10.0-957.el7.x86_64 SMP mod_unload modversions > parm: debug:Debug level (0=3Dnone,...,16=3Dall) (int) > > > > Network devices using DPDK-compatible driver > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 0000:b5:00.0 'Ethernet Connection X722 for 10GbE SFP+ 37d3' > drv=3Duio_pci_generic unused=3Di40e,igb_uio,vfio-pci > > Network devices using kernel driver > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 0000:04:00.0 'I350 Gigabit Network Connection 1521' if=3Deno3 drv=3Digb > unused=3Digb_uio,vfio-pci,uio_pci_generic *Active* > 0000:04:00.1 'I350 Gigabit Network Connection 1521' if=3Deno4 drv=3Digb > unused=3Digb_uio,vfio-pci,uio_pci_generic > 0000:b5:00.1 'Ethernet Connection X722 for 10GbE SFP+ 37d3' if=3Deno2 drv= =3Di40e > unused=3Digb_uio,vfio-pci,uio_pci_generic > > > Thanks & Regards > Puneet Singh > >