From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-00196b01.pphosted.com (mx0a-00196b01.pphosted.com [67.231.149.170]) by dpdk.org (Postfix) with ESMTP id 8A05D4D27 for ; Fri, 7 Sep 2018 19:11:24 +0200 (CEST) Received: from pps.filterd (m0096263.ppops.net [127.0.0.1]) by mx0a-00196b01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w87HAqBj003259; Fri, 7 Sep 2018 13:11:23 -0400 Received: from nam03-dm3-obe.outbound.protection.outlook.com (mail-dm3nam03lp0019.outbound.protection.outlook.com [207.46.163.19]) by mx0a-00196b01.pphosted.com with ESMTP id 2mbn940gdq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 07 Sep 2018 13:11:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thescout.onmicrosoft.com; s=selector1-netscout-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+1NBYc9UezDU7NxUMODi4TBKdKI6jH5jbnt1Kjic1WI=; b=izdUuxym06horggrXfSZa9nxOI3VhGte2b7nbYgWwDvBLa1Ps4S5MbNSbXJOoITPtz5mY0Xcn24DUZPzmx7q7GUTU+JuvRUXwyqOL6iGUs88bH3vBNM7HwbbJ34qJmcOn0DGoP3sFKWR+iq0LY2cX0Z5zUW9U1eLKs+SFJa3AeA= Received: from DM5PR0101MB2954.prod.exchangelabs.com (10.174.181.144) by DM5PR0101MB2940.prod.exchangelabs.com (10.174.183.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.15; Fri, 7 Sep 2018 17:11:21 +0000 Received: from DM5PR0101MB2954.prod.exchangelabs.com ([fe80::5da4:fb46:3c16:1eaa]) by DM5PR0101MB2954.prod.exchangelabs.com ([fe80::5da4:fb46:3c16:1eaa%5]) with mapi id 15.20.1122.009; Fri, 7 Sep 2018 17:11:21 +0000 From: "Shubhachint, Chaitanya" To: "Richardson, Bruce" , "dev@dpdk.org" Thread-Topic: DPDK Shared lib: No Ethernet ports Thread-Index: AdRGtPctS05DVeE9T7qT7l0sq5s1oQAAPXcwAAT8dpA= Date: Fri, 7 Sep 2018 17:11:21 +0000 Message-ID: References: <59AF69C657FD0841A61C55336867B5B07268C8AF@IRSMSX103.ger.corp.intel.com> In-Reply-To: <59AF69C657FD0841A61C55336867B5B07268C8AF@IRSMSX103.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [4.30.79.129] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DM5PR0101MB2940; 6:yL/xnHLNL/h/Si5wSVPncJFEWr/PxYA6fpr1zqL5z+L/Azo/wT1wvmm5EbpceLxEwpZ6CFqreVg7BJWmzaZMcrY863CZwt5kuHdRD8QB+31CgqRFSS3O/Vq92eQW1D+zcGiBqFt9vR3kV7UQvyeCnKtq/3ou+ELLagxO4wzLNR8pJ1EWyk3iM2HWhR8EpCxyfZg5nyVdbMqJvq0Y98R2ax8EbJJGEhwz0dvmnZv3/oH4sYZPLJv7TjsqMIwzakyA2/6eO0KYhax/hDzDI1w0LRit0IF1FmqfrgAVyGyRsYFXtD7ZTpJR0khyyO8RpqZsxfVxZZqe1+8Dqlx4ZqOBWeY7dNPX6P0ZuB2lA/liTf2U21e4CziM3NyFz84s7PjjOWuxIvJ4+/QYY9ZdU8Dt8XyR0M5+ABVdHjll08wuja+W5wWsJ3CCBvR2ZZK7a0XUWRyPC0AL31QW82oxLX/0yA==; 5:w6Bss4+s2c5NnJpJObqmcR7TSfCz7y2YpNdCLbcHW8W+gJxGCCCr6ndkk6vTMKiW0Ve7LOdikXyqRfqChVQ3B/b88+pBQb1kKss9SxKyExFWb1Ehxwi2/4Rj9aLSxZYrkBd+eZL6C/hQixoLLcLu40p/VZJLoAKuXsdK6W5DT18=; 7:VmvvKQo+4HVPEcU65eL5Z2FYoPImXljRf3fmJdcc3DiV0JumpMFA5LMS1SmyWpAnf2xv2ZvvkwwCi9RXxUiuUeOQHQ2JGa79cbkZQpSjo/lGjqGeQk8mpkSGp96zj5bVuZSVSBl64eyHqBsQF6tCKh6AcYfyD1vKr0LBeE3K6JAqwCUfUBNs2nE6sXm4+XBMPMFtoq72pSUR76BMa35VJqGhF1rxNWHhD3yI8A9vs6pNS26U/Feex+aiEDoOVhP0 x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 946a4974-a4c3-48d5-4931-08d614e4eef8 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:DM5PR0101MB2940; x-ms-traffictypediagnostic: DM5PR0101MB2940: x-netscout-xtra: NETSCOUT to External through ProofPoint x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699050); SRVR:DM5PR0101MB2940; BCL:0; PCL:0; RULEID:; SRVR:DM5PR0101MB2940; x-forefront-prvs: 07880C4932 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(136003)(396003)(376002)(346002)(366004)(189003)(199004)(13464003)(5250100002)(186003)(72206003)(6436002)(81156014)(81166006)(7696005)(2906002)(486006)(68736007)(345774005)(476003)(446003)(11346002)(2900100001)(33656002)(3846002)(14454004)(8936002)(6116002)(86362001)(316002)(99286004)(106356001)(8676002)(66066001)(53936002)(105586002)(97736004)(74316002)(5660300001)(55016002)(229853002)(25786009)(110136005)(478600001)(102836004)(76176011)(6246003)(256004)(9686003)(7736002)(6506007)(2501003)(53546011)(45080400002)(26005)(305945005); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR0101MB2940; H:DM5PR0101MB2954.prod.exchangelabs.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: netscout.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: n8cCE25VBYPwt+xmvNO3fHaPyG3QPCNhUf+osRps9PGBWnsLfBpE4e4X8s2qWjBDoEpyPhxQ40WF3S+yd1lCn7RuPOnrjDnVher7MN0hsTKOt4FKOOIJqZ1RpMCfcrsxMZROPmXwpRUPHTNV2m+h8cIQ+kfkAZULmJ5jZr6j8Bk+vx3mOEKjt85ZdQlyk/UhbAXyUNMHUNFrUegYDWFhP8PKE3THmdyMFKIQQ5WfxQRR/dhYeOO/eLtIGYKB/OIoMV0Atp9lE5oBJUzyZt0kyRt1Bj9xNvM0L/snVOezz595BE8tx8Qwk21/2TKJGovDXVxcbmR431nURq5TZr/AeYIAddZ1njN3TIgXXBSo5b4= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: netscout.com X-MS-Exchange-CrossTenant-Network-Message-Id: 946a4974-a4c3-48d5-4931-08d614e4eef8 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Sep 2018 17:11:21.2971 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 54f11205-d4aa-4809-bd36-0b542199c5b2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR0101MB2940 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-09-07_09:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809070171 Subject: Re: [dpdk-dev] DPDK Shared lib: No Ethernet ports 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: Fri, 07 Sep 2018 17:11:25 -0000 Thank you for your reply Bruce.=20 Still having issues with shared-lib DPDK. I tried both options and get two = distinct issues.=20 I tried running the l2fwd example with e1000 driver and get little farther.= This time it does find the devices but there is an error with MBUF root:build$./l2fwd -d /home/sp2/dpdk-18.08/x86_64-native-linuxapp-gcc/lib/l= ibrte_pmd_e1000.so EAL: Detected 6 lcore(s) EAL: Detected 1 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: No free hugepages reported in hugepages-1048576kB EAL: Probing VFIO support... EAL: PCI device 0000:00:19.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:1502 net_e1000_em EAL: PCI device 0000:06:00.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:1521 net_e1000_igb EAL: PCI device 0000:06:00.1 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:1521 net_e1000_igb EAL: PCI device 0000:06:00.2 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:1521 net_e1000_igb EAL: PCI device 0000:06:00.3 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:1521 net_e1000_igb EAL: PCI device 0000:08:00.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:10d3 net_e1000_em MAC updating enabled MBUF: error setting mempool handler EAL: Error - exiting with code: 1 Cause: Cannot init mbuf pool 2nd Option of setting CONFIG_RTE_EAL_PMD_PATH option is ideal, but I run in= to issue with as well. I am configuring and installing the DPDK with CONFIG= _RTE_EAL_PMD_PATH set as=20 CONFIG_RTE_EAL_PMD_PATH=3D$(HOME)/dpdk-18.08/x86_64-native-linuxapp-gcc/lib I this case I get following error when I run l2fwd root:build$./l2fwd=20 EAL: Detected 6 lcore(s) EAL: Detected 1 NUMA nodes EAL: /home/sp2/dpdk-18.08/x86_64-native-linuxapp-gcc/lib/libdpdk.so: invali= d ELF header EAL: FATAL: Cannot init plugins EAL: Cannot init plugins EAL: Error - exiting with code: 1 Cause: Invalid EAL arguments Regards, Chai -----Original Message----- From: Richardson, Bruce =20 Sent: Friday, September 07, 2018 09:22 AM To: Shubhachint, Chaitanya ; dev@dpdk.o= rg Subject: RE: DPDK Shared lib: No Ethernet ports [EXTERNAL EMAIL] > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Shubhachint,=20 > Chaitanya > Sent: Friday, September 7, 2018 3:18 PM > To: dev@dpdk.org > Subject: [dpdk-dev] DPDK Shared lib: No Ethernet ports >=20 > Hello, >=20 > I recently started working with DPDK and gone through the initial=20 > steps of getting source code installed and trying out few examples. To=20 > integrate DPDK with our product, I need to build the share-lib version of= DPDK. > I run into an issue when I build DPDK as shared, I don't see this=20 > issue when DPDK is built as static. DPDK built with default=20 > configuration, I can run the examples and get expected results. When=20 > built as shared, EAL detects no Ethernet ports. >=20 > I am building shared-lib version using steps below: > . switch the CONFIG_RTE_BUILD_SHARED_LIB to y in the config/common_base . > make config T=3Dx86_64-native-linuxapp-gcc . make install=20 > T=3Dx86_64-native- linuxapp-gcc . export RTE_SDK=3D$HOME/dpdk-18.08 .=20 > export RTE_TARGET=3Dx86_64- native-linuxapp-gcc . build examples. > . Set LD_LIBRARY_PATH to point to $HOME/dpdk-18.08/ x86_64-native-=20 > linuxapp-gcc/lib >=20 > I am using Intel I350 Quad port NIC, and have switched to=20 > uio_pci_generic driver =3D> Network devices using DPDK-compatible driver= =20 > =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:06:00.0 'I350 Gigabit Network Connection 1521'=20 > drv=3Duio_pci_generic unused=3Digb > 0000:06:00.1 'I350 Gigabit Network Connection 1521'=20 > drv=3Duio_pci_generic unused=3Digb > 0000:06:00.2 'I350 Gigabit Network Connection 1521'=20 > drv=3Duio_pci_generic unused=3Digb > 0000:06:00.3 'I350 Gigabit Network Connection 1521'=20 > drv=3Duio_pci_generic unused=3Digb >=20 > When I run any examples, I get error 'No Ethernet ports'. >=20 > root:l2fwd$./build/l2fwd > EAL: Detected 6 lcore(s) > EAL: Detected 1 NUMA nodes > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > EAL: No free hugepages reported in hugepages-1048576kB > EAL: Probing VFIO support... > MAC updating enabled > EAL: Error - exiting with code: 1 > Cause: No Ethernet ports - bye >=20 > Interestingly, same code base built with 'CONFIG_RTE_BUILD_SHARED_LIB=3Dn= ' > works just fine. The ports get detected correctly and I can run all=20 > the examples and applications. >=20 > Your help is appreciated. With shared library builds, the drivers are not linked in automatically. Yo= u need to explicitly load them via "-d" EAL flag - either individually or b= y passing in the path to a directory of drivers which can be loaded. See al= so in the build config the setting "CONFIG_RTE_EAL_PMD_PATH" which can be u= sed to set a default search path for loading drivers. Regards, /Bruce