From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot0-f172.google.com (mail-ot0-f172.google.com [74.125.82.172]) by dpdk.org (Postfix) with ESMTP id DD54EF928 for ; Mon, 6 Mar 2017 17:18:36 +0100 (CET) Received: by mail-ot0-f172.google.com with SMTP id x37so71527075ota.2 for ; Mon, 06 Mar 2017 08:18:36 -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:cc :content-transfer-encoding; bh=Dx4E4SomqrziXyUoyWyHVfNvfFLY/1E94Fkoewk8Y3s=; b=RvvRUpctMIf2CW535Wk4JZTvK24NcJIqQ50Gc69BePT7E8hnUDPVswqW9walTyWvDs BrbYwQlT6MdJitCGHe4xv13wG3CqrKyYy7+olfFfxD58yT2l5vHSaOLDYVmN4h32bYkN 5jU7hUHxFySm2m5xrz+VnYUIaS5baSUtLAIv9RGelp/KM8aWJDUfB/EX6dTSsH79P+Xu +zwzeVOWpcr1uLtDu1HB51vRQ2lAJzsHpJ//OJiElnc65dDndutRUaSJseSeU0FiRu5P iDXeCXJ/wlafRbQqXrYbTbp5zP8vn/fzaa7PEM+s0bJm9SE4UvlJFA2jgVWbchEbjrZi jprw== 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:cc:content-transfer-encoding; bh=Dx4E4SomqrziXyUoyWyHVfNvfFLY/1E94Fkoewk8Y3s=; b=Zw/B6DdpFZ/db4jFQdxicoQrlUvdg/5UGUL5Ntb48x7S6eknJVw1dUgRg0mi5maPeq 3BqpI/lWqkk5JS7juJ39meqmGeYAD7OfDIr0UbiK5qmFMx73guC2LiAaJypPDubcPZsB 1dANi4mqnE8NY2dhLhxy4Byp1UVNgP6TXUMbzuOlWCV96dr21caHBCoyFLeFd9QuIiLI MkcRNL0Oih08OM0aMBIyPEBnbww+Gol611m8oux7BuI/3cGG2wg8E+k/E67tTK7W0M1a VIBtBW2QrfdgHV1DSArWw8aAf35rHE8n2bsqY0tcwVMgskiskFltL/4/SuO/Vhdl61h9 TX1Q== X-Gm-Message-State: AMke39kJTOHaUr8mqbZJxYUa0NnSpAVepad93176637AcJTF7qdVRp/Vi+YrrHfKUyfJay2QCrqD3GKfk9u1xIJu X-Received: by 10.157.39.46 with SMTP id r43mt8235756ota.239.1488817115257; Mon, 06 Mar 2017 08:18:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.37.139 with HTTP; Mon, 6 Mar 2017 08:18:34 -0800 (PST) In-Reply-To: References: From: Philip Lee Date: Mon, 6 Mar 2017 11:18:34 -0500 Message-ID: Cc: "Wiles, Keith" , "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 16:18:37 -0000 Oops. Sent the last email from my personal one by accident. Hi Keith, Here's a copy for the mailing list. 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 NIC, but the results are the same. I also tried unbinding the igb_uio drivers 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 provided the same results as well. Also, running pktgen on the working node gives this output with max_rx_queues 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 Thanks, Phlip Lee On Mon, Mar 6, 2017 at 11: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 NI= C, > but the results are the same. I also tried unbinding the igb_uio drivers > 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 > provided the same results as well. > > > Also, running pktgen on the working node gives this output with > max_rx_queues 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 > > > > Thanks, > > Phlip Lee > > > On Mon, Mar 6, 2017 at 10:14 AM, Wiles, Keith wro= te: >> >> >> > 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 >> >>>> cache 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) >> > [0x7f89dd0f7f45]] >> > 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 >> using. The number of ports being setup is taken from the number of devic= es >> DPDK 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 othe= r example >> 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 >> >