From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f171.google.com (mail-qt0-f171.google.com [209.85.216.171]) by dpdk.org (Postfix) with ESMTP id 99D2B2882 for ; Sun, 16 Jul 2017 02:36:57 +0200 (CEST) Received: by mail-qt0-f171.google.com with SMTP id r30so85456035qtc.0 for ; Sat, 15 Jul 2017 17:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=EJzwtGHC95hQTY7AqdGGqEHWItWha4kdFk3eVw/x5RU=; b=uN7q2FdCwyKwSs5d+szFaH2j2109CJjCWela3EVko3kyXauWYdA13dg8wK8XcpTQai l2KQKYFcZFic+yGaZ+RYkGc4Qlb9Zv3c7ubJ/d4OkAeLdbs2AWSL74T/jHyqJOOAKOWw M32niIAcAALrMTtj9sHzi43lVdw0hhbXIwRK59QzvHeqFf4t4ML4h9mrUk4avKTo6dTl ktpM4H7bVwU5b3rI/gMXK7TODTs6eizNLy3aciDKK90P/1a/b1vp2CoKz32w7WY5SnCI mdZAMQfRGrULDaaP1o7pmvbzWEfkLhwKnDclm5Mp/IfkhMfr7Pf+mpJlfsBGJiS6tVdK 4ZjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=EJzwtGHC95hQTY7AqdGGqEHWItWha4kdFk3eVw/x5RU=; b=PZt5zQR9hV39yXAR1xLiF0eTWwH+RPfXUCffBKLQkJx/8/lGT7PbLgi/kgITWci31s cCw7RSASh1o+3N08kRg9WxvhWAuFOBv2mERpN3kp0ED25caNGjHdJdzgMF661FtaGgRy s9lwlU41utuvaODi/XfmR9GKFuJeTSLkRsXzbIX49gAUS8twFeu3HpFUKMune33/Jpib 4dVnCv/SABlRokLFPkhLOxBPRQNs5qlTCXWu027g5602NYDi5MgJLfaA2PVChvK2kVB5 YzYA5buNSZbd7sUH/eS4mc2Nilmy+HQ7ex5iuGpJS2SG/prIM7Veuc5jBZJFZdBfbYwU uurA== X-Gm-Message-State: AIVw111WuD4CLmcel05HpPm4MamEgOxnb7y/KEEeutXmNacwnNLcyQQ3 5/WZm33QR/B0EDIU5FY= X-Received: by 10.237.33.69 with SMTP id 63mr21212628qtc.11.1500165416781; Sat, 15 Jul 2017 17:36:56 -0700 (PDT) Received: from [192.168.1.160] (pool-173-79-93-221.washdc.fios.verizon.net. [173.79.93.221]) by smtp.gmail.com with ESMTPSA id k50sm360732qtc.68.2017.07.15.17.36.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Jul 2017 17:36:55 -0700 (PDT) To: Don maillist Cc: users@dpdk.org References: From: "Caraballo-Vega, Jordan A. (GSFC-6062)[COMPUTER SCIENCE CORP]" Message-ID: <4055c4e7-aa94-b837-d693-e26ac83698df@gmail.com> Date: Sat, 15 Jul 2017 20:37:01 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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: Sun, 16 Jul 2017 00:36:58 -0000 Hi Don, Thanks for the feedback. I will proceed then to further steps. - Jordan On 7/15/17 2:52 PM, Don maillist wrote: > 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 > > 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=2 > # hw.contigmem.buffer_size=1073741824 > > loaded contigmem module during boot process > # contigmem_load="YES" > Once the system is rebooted we proceed to attach the pci address to > nic_uio module. > > # kenv hw.nic_uio.bdfs="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” 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=171456, > size=2176, socket=0 > 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 > >