From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f179.google.com (mail-qk0-f179.google.com [209.85.220.179]) by dpdk.org (Postfix) with ESMTP id 7074D9B3B for ; Tue, 1 Aug 2017 05:38:21 +0200 (CEST) Received: by mail-qk0-f179.google.com with SMTP id x191so2423512qka.5 for ; Mon, 31 Jul 2017 20:38:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=CAa4VypYKOLGoZs2DH54euOx13033+6r+lZRYjVxTsM=; b=FQiFf23kkBo8KTjcoA+QhHF+HnEjTRKMgFod4LdMbM8cg9mXNoZ4hcEQ/Ob9gxYHgR JjEx6g51P8ZAYgu6+bBREkYx0/3Vl4CHflCmGMprJTSz4HjNww8+lWtPyvVzlVaFP+MJ RC+w9pM3sHNZq0ZGu6QG1Di1LVl8LgU9DyGe382wWcsjE1IuYCI4g4RigvWbkvl5E/uw V69ExVM6vzEwFinERT/flWJk11ZDMmmQZ+hoEu24uZTjtvg8HU8qd41tEo9ljaU8qV0V Fzgs4vZCTnmfbTQnySXBUQGrfpTwCnShVScA5wyBZZmEpDl1fWzAwCQ8sJJkAcGy18O4 mVTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=CAa4VypYKOLGoZs2DH54euOx13033+6r+lZRYjVxTsM=; b=Z50jlEZpJf+HN80MXKI7P3cjyUKjuwTwuK47LBV0nA0i4d0GhqlQVN25AY6U45M2sF cWwxTsHkPJN3piMQC9TDx72hy5lB+ABX9MO+B93ORt/JRItA3sqpZtFxP/VBv8vR4VFc rixDzGN5Kr6QZWwhlBPlsKj93+ENnxM1R8zgjtxotOl551ko/gaG8/i7BVrFNihmCUOj PPdJZ5jvkVaddrpHHkPOlUDCqMagFXRZ2nkjbZahak9yC9++aIRmSLNx1Zgr9OXFJPF1 j3b1LYm1JV/4J+ynjv0+liodHoeX4nyO5DSLhFj3gBkpjWheDBcpEbTU1C8VJfBwcPwN /3dw== X-Gm-Message-State: AIVw112yG5hxz1UNlRjMIGAc7lvLslyF160s4It/1+HAaeclqxZDpbaq qKupXAoFxo39nlPFKa1RNZyKhU9ghA== X-Received: by 10.55.105.67 with SMTP id e64mr22451719qkc.134.1501558700723; Mon, 31 Jul 2017 20:38:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.170.14 with HTTP; Mon, 31 Jul 2017 20:38:20 -0700 (PDT) In-Reply-To: References: From: Paul Tsvika Date: Tue, 1 Aug 2017 11:38:20 +0800 Message-ID: To: Olga Shern Cc: "users@dpdk.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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 03:38:21 -0000 Hi Olga, 2017-08-01 0:11 GMT+08:00 Olga Shern : > Hi Paul, > > Looks like your ConnectX-3 configured to be IB and not ETH > > > pci@0000:04:00.0 ib0 network MT27500 Family [ConnectX-3] > > Use connectx_port_config script. > Set all the ports to Ethernet, and follow the instructions on the screen. > Thanks. I followed the script and configured both ports to Ethernet. ibstat info below: 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 I also change the default value from n to CONFIG_RTE_LIBRTE_MLX4_PMD=y. Recompiled DPDK and it all worked. And Below is my ifconfig info: 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) 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) 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: Network devices using kernel driver =================================== 0000:03:00.0 'Ethernet Connection X552/X557-AT 10GBASE-T 15ad' if=eno3 drv=ixgbe unused= 0000:03:00.1 'Ethernet Connection X552/X557-AT 10GBASE-T 15ad' if=eno4 drv=ixgbe unused= 0000:04:00.0 'MT27500 Family [ConnectX-3] 1003' if=ens2,ens2d1 drv=mlx4_core unused= 0000:05:00.0 'I350 Gigabit Network Connection 1521' if=eno1 drv=igb unused= 0000:05:00.1 'I350 Gigabit Network Connection 1521' if=eno2 drv=igb unused= *Active* With these configurations, I run commands in order but still had the same result: $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-type 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]" >>> 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) Is there anything I've done wrong here? Thanks P.T > You can use -w to specify ConnectX-3 PCI address, you don't need to use -b > > Make sure you compile DPDK with mlx4 PMD, it is not enabled by default > > Best Regards, > Olga > > > -- P.T