From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id C21382935 for ; Sat, 15 Jul 2017 16:05:06 +0200 (CEST) Received: by mail-wm0-f47.google.com with SMTP id 62so41702517wmw.1 for ; Sat, 15 Jul 2017 07:05:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=53+5vqA1xf+ZPrQA2Yz9MNF+pM9YMP6cQSM5e/RS7aQ=; b=HMIAW65Sf+/Ubavis9Vm7ConcYMTj/GaigCllbyZD++8vmZ/3Ws4XoxfWDlU/EPM83 MlBEif7RYpKdG5dZlKjwHaWP1E/TkeTgXYBZIi7yyGSPzhNdXcIzoH87INFW1+i4NYF5 9GCs+JOzSSfHGgWXd6Qe8ewe25dHOVpm5qGhuSE4tRrE7bIQufHba8d6/v2j2XcIFTS1 6Dqsn4eLuhyuXIPrtkBFtsxMR27skrCLmxY/b6EJauM5lG9+Ca8xYeOb2j7P/en8JULo yTQwzZecQwaZR+RXKYElER3tRpzgDp+ytH5040/09bqKm1Ioxn+lEPs77GojtkSUFFD2 AYfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=53+5vqA1xf+ZPrQA2Yz9MNF+pM9YMP6cQSM5e/RS7aQ=; b=fAVISe+q6k13NnLtPNp86pK7JAWnWzbubhSmNuxdykfjuCzl7loSV0ywHpI9Q8QbgV MGVyn52xPjYCtHxdE6mQl54j/qSOJbzHR2juMGrmTk5tGg8DsYXp92Mq36cDoOP3zVvp 3o9BVKbam3GAC4urUPBYkKB/deLcAog4JE6w1J1UbDpaYq2x3uR+BFHsA+B0t7PjcAsD bclACGdheVzcn8oWH8mgRByygSY99/K0Bc8FB3cOL7FLjhviv/goJ17kKIJlEzRZWd3g doqH+X9la6w7NJoNPsbIM7sso8I97zBjwxxuwKMUJlPcVSUIzZDSPGptpFrkykRl98xp lqqA== X-Gm-Message-State: AIVw1121ui14qoOFOPEaA5JWDMXvRvuZ/x1zrrs6+jkR3TNMTf7teWea 9VzgpgrezAMDJq79+uewf9Z1IiVl6aBc X-Received: by 10.80.182.201 with SMTP id f9mr10582190ede.44.1500127506224; Sat, 15 Jul 2017 07:05:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.208.26 with HTTP; Sat, 15 Jul 2017 07:05:05 -0700 (PDT) From: Jordan Caraballo Date: Sat, 15 Jul 2017 10:05:05 -0400 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [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 14:05:07 -0000 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 =E2=80=A8# 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 =E2=80=A8# 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 107374= 1824 EAL: Mapped memory segment 2 @ 0x842400000: physaddr:0x180000000,len 107374= 1824 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