From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f51.google.com (mail-oi0-f51.google.com [209.85.218.51]) by dpdk.org (Postfix) with ESMTP id C632DFAC9 for ; Mon, 6 Mar 2017 18:00:04 +0100 (CET) Received: by mail-oi0-f51.google.com with SMTP id 2so88136286oif.0 for ; Mon, 06 Mar 2017 09:00:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=+0Si/Ukt8wOt/WRvGpNupQcjc4vCzeNO1Liq4S7V928=; b=xCSykFPE2wBIj4vyeYvBbz4p2MdlzXxrltAbinFbCraawgm4l/6Ov8Dj06HXkTsge0 lkmAKT1KY2u6be2iaEBs4o+61j85rjcsyOIXLOMaIGF0t0kO2Bun8fBWWj39/Pm2I30I nXGP66KqK04RhsqP2qr8aB5XpwttldYaenU3s7c9czs3IIOHBku+XdePrcZqJGWUa42Z QH5eUBk23DBCruBKCAnlh5HTf2Ev1dW3C0Z0v21uhjYhXvpthyyMOtJsG6OQkkf9efmY fQXT0jdk5qEjovk6IOBLkvaRRfEgJmycE7SKncgASd36tddg2klDVWtKnIoT7CBZ8c3J 4w2A== 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:content-transfer-encoding; bh=+0Si/Ukt8wOt/WRvGpNupQcjc4vCzeNO1Liq4S7V928=; b=PIlwJqRuLEWnDVqCYFaLYFCjAx+ldAocP1O5WN7zUKgUdKwg+kV9nzk/fDhikSKu+s zkphyG9u8f1624LhjwqRAKvFMyzVx0K8zklhjB+XmddnRTo4G7i5LB8TW6s54e21j382 npvYKletQyYUQkdXsDsMyIxUs8FMf3Pk9R4arroxN59CIUeqlYqbKLVqCh018vC/8H5A 8lV25OP65ZXibBf3Cg+H9Pgrx79BRgucPipqlKWLXsCZEz43GiHpOsqLOScgbClNbzRc jDqNXdNNAojBc/Y1/lkvmM6uf9rmrc7+MnYS+BFlcZdnhBJ1vWl+1Md3Ff95S14gqfoX dxyA== X-Gm-Message-State: AMke39mnfmgpBifzquGC4B1uLwtSnnQikDmLSBbtzyuAb8Tmo50YbgAMausaSxLv5jWtlLCbCzaJf6eq2UuXBENl X-Received: by 10.202.7.193 with SMTP id 184mr7651231oih.58.1488819603854; Mon, 06 Mar 2017 09:00:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.33.91 with HTTP; Mon, 6 Mar 2017 09:00:03 -0800 (PST) In-Reply-To: References: From: Philip Lee Date: Mon, 6 Mar 2017 12:00:03 -0500 Message-ID: To: "Wiles, Keith" Cc: "users@dpdk.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-users] Pktgen Cannot configure device panic 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: Mon, 06 Mar 2017 17:00:05 -0000 Hi Keith, Do you have any insights into which driver you think may be problematic? I haven't really gone anywhere after redoing my original install steps for DPDK and Pktgen. The only main difference I can think of is that I installed the Netronome board support package from a prepackaged .deb file onto this system. Sorry for all the hassle. I'm completely new to Netronome, DPDK, and Pktgen= . Thanks, Philip On Mon, Mar 6, 2017 at 11:22 AM, Wiles, Keith wrote= : > >> On Mar 6, 2017, at 10:17 AM, Philip Lee wrote: >> >> Hi Keith, >> >> Also, how do I get a list of devices that DPDK detects to find the ports= to blacklist? >> >> I tried blacklisting just the other virtual functions of the Netronome N= IC, but the results are the same. I also tried unbinding the igb_uio driver= s from all but the virtual function I'm using. If I use the whitelist (-w),= does it force it to look at that pci device only? I tried that and it prov= ided the same results as well. > > You can do one of two things only bind the ports you want to use or black= list all of the ports that are bound that you do not want DPDK to see. > > To see all of your ports in the system do =E2=80=98lspci | grep Ethernet= =E2=80=99 > > Then you need to figure out how the PCI id maps to the phyiscal port you = want to use. (Not normally a easy task or then read the hardware spec on th= e Motherboard or just do some experiments. > >> >> >> Also, running pktgen on the working node gives this output with max_rx_q= ueues and max_tx_queues having values of 1, so it seems like its a problem = with the system setup on this broken node. >> ** Default Info (5:8.0, if_index:0) ** >> max_vfs : 0, min_rx_bufsize : 68, max_rx_pktlen : 9216 >> max_rx_queues : 1, max_tx_queues : 1 > > I think this is a driver problem, as it should report at least one per. >> >> >> Thanks, >> >> Phlip Lee >> >> >> On Mon, Mar 6, 2017 at 10:14 AM, Wiles, Keith wr= ote: >> >> > On Mar 5, 2017, at 8:03 PM, Philip Lee wrote: >> > >> > Hello all, >> > >> > I had a "working" install of pktgen that would transfer data but not >> > provide statistics. The setup are two Netronome NICs connected >> > together. It was suggested there was a problem with the Netronome PMD, >> > so I reinstalled both the Netronome BSP and DPDK. Now I'm getting the >> > following error with trying to start up pktgen with: ./pktgen -c 0x1f >> > -n 1 -- -m [1:2].0 >> > >> >>>> Packet Burst 32, RX Desc 512, TX Desc 1024, mbufs/port 8192, mbuf c= ache 1024 >> > =3D=3D=3D port to lcore mapping table (# lcores 5) =3D=3D=3D >> > lcore: 0 1 2 3 4 >> > port 0: D: T 1: 0 0: 1 0: 0 0: 0 =3D 1: 1 >> > Total : 0: 0 1: 0 0: 1 0: 0 0: 0 >> > Display and Timer on lcore 0, rx:tx counts per port/lcore >> > >> > Configuring 4 ports, MBUF Size 1920, MBUF Cache Size 1024 >> > Lcore: >> > 1, RX-Only >> > RX( 1): ( 0: 0) >> > 2, TX-Only >> > TX( 1): ( 0: 0) >> > Port : >> > 0, nb_lcores 2, private 0x8cca90, lcores: 1 2 >> > >> > ** Default Info (5:8.0, if_index:0) ** >> > max_vfs : 0, min_rx_bufsize : 68, max_rx_pktlen : 0 >> > max_rx_queues : 0, max_tx_queues : 0 >> > max_mac_addrs : 1, max_hash_mac_addrs: 0, max_vmdq_pools: 0 >> > rx_offload_capa: 0, tx_offload_capa : 0, reta_size : >> > 128, flow_type_rss_offloads:0000000000000000 >> > vmdq_queue_base: 0, vmdq_queue_num : 0, vmdq_pool_base: 0 >> > ** RX Conf ** >> > pthresh : 8, hthresh : 8, wthresh : 0 >> > Free Thresh : 32, Drop Enable : 0, Deferred Start : 0 >> > ** TX Conf ** >> > pthresh : 32, hthresh : 0, wthresh : 0 >> > Free Thresh : 32, RS Thresh : 32, Deferred Start : >> > 0, TXQ Flags:00000f01 >> > >> > !PANIC!: Cannot configure device: port=3D0, Num queues 1,1 (2)Invalid = argument >> > PANIC in pktgen_config_ports(): >> > Cannot configure device: port=3D0, Num queues 1,1 (2)Invalid argument6= : >> > [./pktgen() [0x43394e]] >> > 5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f89dd0= f7f45]] >> > 4: [./pktgen(main+0x4d4) [0x432f54]] >> > 3: [./pktgen(pktgen_config_ports+0x3108) [0x45f418]] >> > 2: [./pktgen(__rte_panic+0xbe) [0x42f288]] >> > 1: [./pktgen(rte_dump_stack+0x1a) [0x49af3a]] >> > Aborted >> > >> > ----------------------------------------------------------------------= -------------------------------------------------- >> > >> > I tried unbinding the nics and rebinding. I read in an older mailling >> > post that setup.sh needs to be run every reboot. I executed it, and it >> > looks like a list of things to install pktgen that I had done manually >> > again after the most recent reboot. The output of the status check >> > script is below: >> > ./dpdk-devbind.py --status >> > >> > 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:05:08.0 'Device 6003' drv=3Digb_uio unused=3D >> > 0000:05:08.1 'Device 6003' drv=3Digb_uio unused=3D >> > 0000:05:08.2 'Device 6003' drv=3Digb_uio unused=3D >> > 0000:05:08.3 'Device 6003' drv=3Digb_uio unused=3D >> > >> > 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:01:00.0 'NetXtreme BCM5720 Gigabit Ethernet PCIe' if=3Deth0 drv= =3Dtg3 >> > unused=3Digb_uio *Active* >> > 0000:01:00.1 'NetXtreme BCM5720 Gigabit Ethernet PCIe' if=3Deth1 drv= =3Dtg3 >> > unused=3Digb_uio >> > 0000:02:00.0 'NetXtreme BCM5720 Gigabit Ethernet PCIe' if=3Deth2 drv= =3Dtg3 >> > unused=3Digb_uio >> > 0000:02:00.1 'NetXtreme BCM5720 Gigabit Ethernet PCIe' if=3Deth3 drv= =3Dtg3 >> > unused=3Digb_uio >> > 0000:05:00.0 'Device 4000' if=3D drv=3Dnfp unused=3Digb_uio >> > 0000:43:00.0 'Ethernet Controller 10-Gigabit X540-AT2' if=3Deth4 >> > drv=3Dixgbe unused=3Digb_uio >> > 0000:43:00.1 'Ethernet Controller 10-Gigabit X540-AT2' if=3Deth7 >> > drv=3Dixgbe unused=3Digb_uio >> > 0000:44:00.0 'MT27500 Family [ConnectX-3]' if=3Deth5,eth6 drv=3Dmlx4_c= ore >> > unused=3Digb_uio >> > >> > Does anyone have any suggestions? >> >> Try blacklisting (-b 0000:01:00.1 -b ...) all of the ports you are not u= sing. The number of ports being setup is taken from the number of devices D= PDK detects. >> >> The only on thing I am worried about is the ' max_rx_queues : 0, max_= tx_queues : 0=E2=80=99 is reporting zero queues. It maybe other examp= le code does not test the return code from the rte_eth_dev_configure() call= . I think the max_rx_queues and max_tx_queues should be at least 1. >> >> > >> > Thanks, >> > >> > Philip Lee >> >> Regards, >> Keith >> >> > > Regards, > Keith >