From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0081.outbound.protection.outlook.com [157.56.112.81]) by dpdk.org (Postfix) with ESMTP id EF4033784 for ; Tue, 21 Apr 2015 15:34:03 +0200 (CEST) Received: from AM2PR05MB0996.eurprd05.prod.outlook.com (25.161.234.146) by AM2PR05MB1186.eurprd05.prod.outlook.com (25.163.148.12) with Microsoft SMTP Server (TLS) id 15.1.136.25; Tue, 21 Apr 2015 13:34:03 +0000 Received: from AM2PR05MB0995.eurprd05.prod.outlook.com (25.161.234.145) by AM2PR05MB0996.eurprd05.prod.outlook.com (25.161.234.146) with Microsoft SMTP Server (TLS) id 15.1.148.15; Tue, 21 Apr 2015 13:34:02 +0000 Received: from AM2PR05MB0995.eurprd05.prod.outlook.com ([25.161.234.145]) by AM2PR05MB0995.eurprd05.prod.outlook.com ([25.161.234.145]) with mapi id 15.01.0148.008; Tue, 21 Apr 2015 13:34:02 +0000 From: Olga Shern To: ZhanYing Kang , dev Thread-Topic: [dpdk-dev] DPDK v2.0 testpmd with Mellanox ConnectX-3 problem! Thread-Index: AQHQfDa+dz4gqp7Tk0OKBN2AED/zrJ1XdifA Date: Tue, 21 Apr 2015 13:34:01 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: qq.com; dkim=none (message not signed) header.d=none; x-originating-ip: [193.47.165.251] x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:AM2PR05MB0996; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:AM2PR05MB1186; x-microsoft-antispam-prvs: x-forefront-antispam-report: BMV:1; SFV:NSPM; SFS:(10009020)(979002)(6009001)(377454003)(13464003)(92566002)(68736005)(33656002)(107886001)(226693001)(2900100001)(2950100001)(54356999)(76576001)(76176999)(50986999)(106116001)(66066001)(102836002)(122556002)(62966003)(77156002)(19580395003)(40100003)(86362001)(46102003)(2656002)(97736004)(19580405001)(5890100001)(74316001)(87936001)(4001540100001)(5001770100001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR05MB0996; H:AM2PR05MB0995.eurprd05.prod.outlook.com; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(5005006)(5002010); SRVR:AM2PR05MB0996; BCL:0; PCL:0; RULEID:; SRVR:AM2PR05MB0996; x-forefront-prvs: 0553CBB77A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Apr 2015 13:34:01.8035 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR05MB0996 X-OriginatorOrg: Mellanox.com Subject: Re: [dpdk-dev] DPDK v2.0 testpmd with Mellanox ConnectX-3 problem! 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: Tue, 21 Apr 2015 13:34:04 -0000 Hi Kang,=20 You probably compiled the downloaded libraries using dynamic linkage, prio= r to the static one you specified here. You need to remove them from /usr/local/libs and also please delete /usr/l= ocal/include/infiniband=20 Let me know if it solves your problem. Best Regards, Olga -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of ZhanYing Kang Sent: Tuesday, April 21, 2015 11:45 AM To: dev Subject: [dpdk-dev] DPDK v2.0 testpmd with Mellanox ConnectX-3 problem! When I'm run testpmd with DPDK 2.0 and the Mellanox ConnectX-3. I get a e= rror. =20 Here are my questions: 1> lspci |grep Mell 02:00.0 Network controller: Mellanox Technologies MT27500 Family [ConnectX-= 3] =20 2> compile libibverbs-1.1.7mlnx1 && libmlx4-1.0.5mlnx1 export EXTRA_CFLAGS= =3D-I/DPDK/mlx4/install/usr/local/include export EXTRA_LDFLAGS=3D-L/DPDK/mlx4/install/usr/local/lib =20 3> compile dpdk v2.0 with x86_64-native-linuxapp-gcc config and=20 3> CONFIG_RTE_LIBRTE_MLX4_PMD=3Dy =20 4> modprobe -a ib_uverbs mlx4_en mlx4_core mlx4_ib lsmod mlx4_ib 135033 0= - Live 0xffffffffa0215000 (O) ib_sa 24721 1 mlx4_ib, Live 0xffffffffa02090= 00 (O) ib_mad 31664 2 mlx4_ib,ib_sa, Live 0xffffffffa01fc000 (O) mlx4_en 92= 808 0 - Live 0xffffffffa01b1000 (O) mlx4_core 226516 2 mlx4_ib,mlx4_en, Liv= e 0xffffffffa0163000 (O) ib_uverbs 43309 0 - Live 0xffffffffa0133000 (O) ib= _core 79534 4 mlx4_ib,ib_sa,ib_mad,ib_uverbs, Live 0xffffffffa0100000 (O) i= b_addr 4273 2 ib_uverbs,ib_core, Live 0xffffffffa00fa000 (O) compat 4948 8 = mlx4_ib,ib_sa,ib_mad,mlx4_en,mlx4_core,ib_uverbs,ib_core,ib_addr, Live 0xff= ffffffa00ad000 (O) 5> run testpmd # ./testpmd-mlx -c 0xff00 -n 4 -w 0000:02:00.0 -- --rxq=3D2 --txq=3D2 -i EAL: Detected lcore 0 as core 0 on socket 0 EAL: Detected lcore 1 as core 1 on socket 0 EAL: Detected lcore 2 as core 2 on socket 0 EAL: Detected lcore 3 as core 3 on socket 0 EAL: Detected lcore 4 as core 4 on socket 0 EAL: Detected lcore 5 as core 5 on socket 0 EAL: Detected lcore 6 as core 6 on socket 0 EAL: Detected lcore 7 as core 7 on socket 0 EAL: Detected lcore 8 as core 0 on socket 0 EAL: Detected lcore 9 as core 1 on socket 0 EAL: Detected lcore 10 as core 2 on socket 0 EAL: Detected lcore 11 as core 3 on socket 0 EAL: Detected lcore 12 as core 4 on socket 0 EAL: Detected lcore 13 as core 5 on socket 0 EAL: Detected lcore 14 as core 6 on socket 0 EAL: Detected lcore 15 as core 7 on socket 0 EAL: Support maximum 32 logical core(s) by configuration. EAL: Detected 16 lcore(s) EAL: Setting up memory... EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f5a2b800000 (size =3D 0x200000) EAL: Ask a virtual area of 0x31000000 bytes EAL: Virtual area found at 0x7f59fa600000 (size =3D 0x31000000) EAL: Ask a virtual area of 0x7ec00000 bytes EAL: Virtual area found at 0x7f597b800000 (size =3D 0x7ec00000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f597b400000 (size =3D 0x200000) EAL: Ask a virtual area of 0x250000000 bytes EAL: Virtual area found at 0x7f572b200000 (size =3D 0x250000000) EAL: Requesting 6144 pages of size 2MB from socket 0 EAL: TSC frequency is ~2394227 KHz EAL: Master lcore 8 is ready (tid=3D2e1b7900;cpuset=3D[8]) EAL: lcore 11 is ready (tid=3D299b7700;cpuset=3D[11]) EAL: lcore 14 is ready (tid=3D281b4700;cpuset=3D[14]) EAL: lcore 15 is ready (tid=3D279b3700;cpuset=3D[15]) EAL: lcore 12 is ready (tid=3D291b6700;cpuset=3D[12]) EAL: lcore 9 is ready (tid=3D2caaf700;cpuset=3D[9]) EAL: lcore 10 is ready (tid=3D2c2ae700;cpuset=3D[10]) EAL: lcore 13 is ready (tid=3D289b5700;cpuset=3D[13]) EAL: PCI device 0000:02:00.0 on NUMA socket -1 EAL: probe driver: 15b3:1003 librte_pmd_mlx4 PMD: librte_pmd_mlx4: PCI information matches, using device "mlx4_0" (VF: f= alse) PMD: librte_pmd_mlx4: 2 port(s) detected PMD: librte_pmd_mlx4: bad state for port 1: "down" (1) PMD: librte_pmd_mlx4: port 1 MAC address is 02:02:c9:fa:a4:81 PMD: librte_pmd_mlx4: bad state for port 2: "down" (1) PMD: librte_pmd_mlx4: port 2 MAC address is 00:02:c9:fa:a4:82 Interactive-m= ode selected Configuring Port 0 (socket 0) PMD: librte_pmd_mlx4: 0x7dffe0: TX queues number update: 0 -> 2 PMD: librte_pmd_mlx4: 0x7dffe0: RX queues number update: 0 -> 2 PMD: librte_pmd_mlx4: 0x7fffc81e67e0: flow configuration failed, errno=3D38= : Function not implemented PMD: librte_pmd_mlx4: 0x7fffc81e67e0: flow configuration failed, errno=3D38= : Function not implemented PMD: librte_pmd_mlx4: 0x7dffe0: QP flow attachment failed: Function not imp= lemented Fail to configure port 0 EAL: Error - exiting with code: 1 Cause: Start ports failed =20 Best, Kang!