From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f47.google.com (mail-pg0-f47.google.com [74.125.83.47]) by dpdk.org (Postfix) with ESMTP id 52E799B3B for ; Tue, 1 Aug 2017 06:15:52 +0200 (CEST) Received: by mail-pg0-f47.google.com with SMTP id 125so2798835pgi.3 for ; Mon, 31 Jul 2017 21:15:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=VHbzAn177jryW6V53Fv0LnTpNldKvulDX2qF9pwY1k4=; b=fXftwAMt+4lVIVptBmk7BX2jrRDBXgvir/oAxuBmakEP6eosZjw3E29NucM9Nsvmxj TdD3VCnV+dO8DR9GFp1NeFyj4qJ1nUDx4yr8k7wbt6W0Y5nJIMv2yqxNDYAOg05bLN3d HPIJ+OZYnw9KSul1743/UeIQ+c7vGQpLeDEvxyy1IFIdkYjkr1VgwcY06Dkrtx3UJCCZ ioTTPyeTMT3L3O+mI3CC+GH5NJavWLgM5PvXwx1/tDQxiXgX6hTu4ovCxZtGNXRfCZEu ac+Z1nksE/LYvabyFLvGz7i2DIIh2maf2ahLFr0Wig7VgMDXYlAkvuTlRtEl2474YkmR /3pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=VHbzAn177jryW6V53Fv0LnTpNldKvulDX2qF9pwY1k4=; b=q2R+9Jup5OWf7b5Z6z3DjDGlTeKFe7Q5k5OZ5JbV01Ov53kj211FMW6KkuB0J5E0SR qjoaw+QU+lIiYCifrDejRPe6IyTZzX6yJ6Mrur0z4YkAssp8YLEigSOsjMT9M3+xopqu B8Y9Llj9N+XIieMOsHtZRmIGDEUUJoSS81rVST9VNtuTzYtO81EIYIrNU5mcsJtfaQt/ PDApcZnHD2GfYOqAHbhkV61+sDcpmVY3+U9AH9NF4Fe9QPSdALLI6RPqY0EZsqapHeoy rAlAIdgWcb1oVPjtBp2trCOEVVlT+vbqpikLr2lWiiea2Qsvj0ljZm1SiEEco1Az1HXP 1gjA== X-Gm-Message-State: AIVw111W30ADAr1SBU2DEgB5tht8GCPj6gzqQY6EjfBu/NmqXtaK+/XX IwkBRUwpfKf8Ew== X-Received: by 10.98.155.133 with SMTP id e5mr17726265pfk.186.1501560951358; Mon, 31 Jul 2017 21:15:51 -0700 (PDT) Received: from [10.42.124.244] ([61.148.244.118]) by smtp.gmail.com with ESMTPSA id s9sm58911084pfe.67.2017.07.31.21.15.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Jul 2017 21:15:50 -0700 (PDT) Content-Type: text/plain; charset=gb2312 Mime-Version: 1.0 (1.0) From: zhilong zheng X-Mailer: iPhone Mail (14F89) In-Reply-To: Date: Tue, 1 Aug 2017 12:15:47 +0800 Cc: "users@dpdk.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Paul Tsvika Subject: Re: [dpdk-users] [dpdk][pktgen] - execute pktgen with mlx4 (40G) with some errors 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: , X-List-Received-Date: Tue, 01 Aug 2017 04:15:52 -0000 Hi, After enabling the MLX4 flag and recompiling the DPDK source code, Do you re= compile the code of pktgen? I think you can recompile it by running make cle= an and make. Regards, Zhilong > =D4=DA 2017=C4=EA8=D4=C21=C8=D5=A3=AC11:38=A3=ACPaul Tsvika =D0=B4=B5=C0=A3=BA >=20 > Hi Olga, >=20 > 2017-08-01 0:11 GMT+08:00 Olga Shern : >=20 >> Hi Paul, >>=20 >> Looks like your ConnectX-3 configured to be IB and not ETH >>=20 >>> pci@0000:04:00.0 ib0 network MT27500 Family [ConnectX-3] >>=20 >> Use connectx_port_config script. >> Set all the ports to Ethernet, and follow the instructions on the screen.= >>=20 >=20 > Thanks. I followed the script and configured both ports to Ethernet. >=20 > ibstat info below: >=20 > CA 'mlx4_0' > CA type: MT4099 > Number of ports: 2 > Firmware version: 2.40.7000 > Hardware version: 1 > Node GUID: 0xe41d2d0300024480 > System image GUID: 0xe41d2d0300024483 > Port 1: > State: Down > Physical state: Disabled > Rate: 10 > Base lid: 0 > LMC: 0 > SM lid: 0 > Capability mask: 0x04010000 > Port GUID: 0xe61d2dfffe024481 > Link layer: Ethernet > Port 2: > State: Active > Physical state: LinkUp > Rate: 40 > Base lid: 0 > LMC: 0 > SM lid: 0 > Capability mask: 0x04010000 > Port GUID: 0xe61d2dfffe024482 > Link layer: Ethernet >=20 > I also change the default value from n to CONFIG_RTE_LIBRTE_MLX4_PMD=3Dy.= > Recompiled DPDK and it all worked. >=20 > And Below is my ifconfig info: >=20 > ens2 Link encap:Ethernet HWaddr e4:1d:2d:02:44:81 > UP BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) >=20 > ens2d1 Link encap:Ethernet HWaddr e4:1d:2d:02:44:82 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:126 errors:0 dropped:0 overruns:0 frame:0 > TX packets:220 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:29494 (29.4 KB) TX bytes:38063 (38.0 KB) >=20 >=20 > Since I assume that I don't have to bind the device manually, I executed > ./dpdk-devbind.py --status with the following info popped out: >=20 > 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:03:00.0 'Ethernet Connection X552/X557-AT 10GBASE-T 15ad' if=3Deno3 > drv=3Dixgbe unused=3D > 0000:03:00.1 'Ethernet Connection X552/X557-AT 10GBASE-T 15ad' if=3Deno4 > drv=3Dixgbe unused=3D > 0000:04:00.0 'MT27500 Family [ConnectX-3] 1003' if=3Dens2,ens2d1 > drv=3Dmlx4_core unused=3D > 0000:05:00.0 'I350 Gigabit Network Connection 1521' if=3Deno1 drv=3Digb un= used=3D > 0000:05:00.1 'I350 Gigabit Network Connection 1521' if=3Deno2 drv=3Digb un= used=3D > *Active* >=20 >=20 > With these configurations, I run commands in order but still had the same > result: >=20 > $test: modprobe -a ib_uverbs mlx4_en mlx4_core mlx4_ib > $test: /etc/init.d/openibd restart > $test: sudo ./app/x86_64-native-linuxapp-gcc/pktgen -l 0-6 -n 1 --proc-typ= e > auto --file-prefix pg -b 03:00.0 -b 03:00.1 -b 05:00.0 -b 05:00.1 -- -P -m= > "[1-5.0]" >=20 >=20 >>>> Packet Burst 32, RX Desc 512, TX Desc 1024, mbufs/port 8192, mbuf cache= > 1024 > !PANIC!: *** Did not find any ports to use *** > PANIC in pktgen_config_ports(): > *** Did not find any ports to use ***6: > [./app/x86_64-native-linuxapp-gcc/pktgen(_start+0x29) > [0x447239]] > 5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) > [0x7f0ec0931830]] > 4: [./app/x86_64-native-linuxapp-gcc/pktgen(main+0x580) [0x444710]] > 3: [./app/x86_64-native-linuxapp-gcc/pktgen(pktgen_config_ports+0x1614) > [0x46e324]] > 2: [./app/x86_64-native-linuxapp-gcc/pktgen(__rte_panic+0xc3) [0x43ead4]] > 1: [./app/x86_64-native-linuxapp-gcc/pktgen(rte_dump_stack+0x2b) [0x4b7ecb= ]] > Aborted (core dumped) >=20 >=20 >=20 > Is there anything I've done wrong here? >=20 >=20 > Thanks >=20 >=20 > P.T >=20 >=20 >> You can use -w to specify ConnectX-3 PCI address, you don't need to use -= b >>=20 >> Make sure you compile DPDK with mlx4 PMD, it is not enabled by default >>=20 >> Best Regards, >> Olga >>=20 >>=20 >>=20 >=20 > --=20 > P.T