From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com [209.85.218.52]) by dpdk.org (Postfix) with ESMTP id 69EF82BC7 for ; Sat, 15 Jul 2017 20:52:40 +0200 (CEST) Received: by mail-oi0-f52.google.com with SMTP id x187so93326000oig.3 for ; Sat, 15 Jul 2017 11:52:39 -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=oYOvjK4WbCDDgqFkLyai0Uemqo9bwpWPqB3qDh2CY8A=; b=CD5Tu329HaEA58e/iikThwZ4wbAn+Ovs+ENBY8zxGCEwXijlnsPH3npBoq/0iO5FCZ CbtefMUwWWjHK2RvDnmokMQ9zg4WeCHY0N4gGc65IxeQNmjqptvJHBu1bVpBvs0ryphb fmOrUsR9uvJP+GKrBYzU9LI4lixv+z6YjdBsUGFVD1JnPkgX1+WeLPN3yEPOPshJvIbv cfWObleHb9nQpwbsEDWMC2WXEnQvctKHyn3JvFfQM7t/Heh90gF4mPUi/zUWXcWOErg2 lTX78O5aQjLProOldo4neSMNSgcVrO+N1xEx0XN55r7Ybhbcz//j8LCgFYM6N7OS1Dh3 a8oQ== 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=oYOvjK4WbCDDgqFkLyai0Uemqo9bwpWPqB3qDh2CY8A=; b=f7xnP7Mms8PIsW3wXxXe6Mu4EA4ceaZbgM6A5vbnSJDG5T8X5594KiJtdTX2WbLcRa NSeST5zQqGODR8Qx0FS8ziO1L2qjrfqjCi4OHw6TaEeUY1t9KfahLrvulNNliD2bO2H7 RF7oMruklJYHHplk3fGmde4QS6yczNVVNAzBqXOtYIjXaOhPz4mB/UdvpkCvZxSnnGy0 0kg93ptyX3tocf0IuUvVvEWaMOoguqrIdX1mkcdSv7490a5ES9tFHTeM1LGmQWd6cl7q mTERXX3qRCxGDnsc+6isdWGq0Kkw+PG4paSD+VPb7AINPpyq+kB26HhE1i2hXuCEQP4h YTPQ== X-Gm-Message-State: AIVw111LL7OJflcSP90NaEAosVQRUFXujMfsrp/r56Rr7nK4Ks3MGm8F 4POq9/czppab/gt9fTmzC2f0jUBWSQ== X-Received: by 10.202.237.215 with SMTP id l206mr10048470oih.167.1500144759383; Sat, 15 Jul 2017 11:52:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.50.229 with HTTP; Sat, 15 Jul 2017 11:52:38 -0700 (PDT) In-Reply-To: References: From: Don maillist Date: Sat, 15 Jul 2017 13:52:38 -0500 Message-ID: To: Jordan Caraballo Cc: users@dpdk.org X-Mailman-Approved-At: Mon, 17 Jul 2017 09:05:43 +0200 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] chelsio T-580_CR FreeBSD DPDK link down 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: Sat, 15 Jul 2017 18:52:40 -0000 I am in the midst of a debug of DPDK for a different card type so I can't say for sure and I am not expert but, the testpmd looks fine. And the disappearing ports is to be expected and would be replaced during use (testpmd is a driver test only). You need something riding on top of it like in our case OVS+DPDK which later creates a dpdk0 port. I think you are on the right track but you are early in the process. Best Regards, Don On Sat, Jul 15, 2017 at 9:05 AM, Jordan Caraballo < jordancaraballo87@gmail.com> wrote: > Hi guys, > > We currently trying to implement DPDK in FreeBSD 11-STABLE to a Dell > PE R530 equipped with > a Chelsio T-580-CR port in an 8x slot (firmware version: 1.16.45.0). > At the time of running testpmd to check the interfaces, ports are > detected but none of them are up. > We were expecting an output like the one from > http://dpdk.org/doc/guides/nics/cxgbe.html. > > ############################### > > Installed dpdk from /usr/ports/net/dpdk in a FreeBSD 11-STABLE system. > Also tried same approach with the stable version from the website. > Unloaded every module related to dpdk and cxgbe. Then: > # kldload if_cxgbe > # dmesg | grep "t5nex" > # pciconf -l | grep "t5nex" > Note: The result given from this command is primarily t5nex0@pci0:4:0:4: > # kldunload if_cxgbe > > Added to /boot/loader.conf below configurations and rebooted the system: > reserve 2 x 1G blocks of contiguous memory using contigmem driver > # hw.contigmem.num_buffers=3D2 > # hw.contigmem.buffer_size=3D1073741824 > > loaded contigmem module during boot process > # contigmem_load=3D"YES" > Once the system is rebooted we proceed to attach the pci address to > nic_uio module. > > # kenv hw.nic_uio.bdfs=3D"4:0:4" > # kldload nic_uio.ko > # pciconf -l > The result of pciconf -l at the t5nex0 pci is nic_uio@pci0:4:0:4. > Note that once I load the nic module cxlX interfaces are no longer > present at ifconfig. > > Tried to run: > # /usr/local/share/dpdk/x86_64-native-bsdapp-clang/app/testpmd -l 0-3 -n = 4 > -w 0000:4:00.4 -- -i > > And script runs but links are down. Output below. At interactive mode > I use "set link-up port 0=E2=80=9D but it fails to bring any > of the ports up with an error of "set link-up fail". > > root@router1:~/dpdk-stable-17.05.1 # > ./x86_64-native-bsdapp-clang/app/testpmd -l 0-3 -n 4 -w 0000:04:00.4 > -- -i > EAL: Sysctl reports 36 cpus > EAL: Detected 36 lcore(s) > EAL: Contigmem driver has 2 buffers, each of size 1GB > EAL: Mapped memory segment 1 @ 0x802400000: physaddr:0x140000000,len > 1073741824 > EAL: Mapped memory segment 2 @ 0x842400000: physaddr:0x180000000,len > 1073741824 > EAL: PCI scan found 212 devices > EAL: PCI device 0000:04:00.4 on NUMA socket 0 > EAL: probe driver: 1425:5410 net_cxgbe > PMD: rte_cxgbe_pmd: fw: 1.16.45.0, TP: 0.1.4.9 > PMD: rte_cxgbe_pmd: Coming up as MASTER: Initializing adapter > PMD: rte_cxgbe_pmd: Successfully configured using Firmware > Configuration File "On Flash", version 0x1000026, computed checksum > 0x2e1a8475 > PMD: rte_cxgbe_pmd: 0000:04:00.4 Chelsio rev 0 40GBASE-QSFP > PMD: rte_cxgbe_pmd: 0000:04:00.4 Chelsio rev 0 40GBASE-QSFP > Interactive-mode selected > USER1: create a new mbuf pool : n=3D171456, > size=3D2176, socket=3D0 > Configuring Port 0 (socket 0) Port 0: 00:07:43:2C:AC:50 > Configuring Port 1 (socket 0) Port 1: 00:07:43:2C:AC:58 > Checking link statuses... > Done > > testpmd> > > ################################### > > - Any advice or idea? > - Am I missing something? > - My aim is to increase packets per second forwarding in a router, are > we in the right track with DPDK? > > In case of needing additional log information do not hesitate to ask. > > Thanks in advance, > > Jordan >