DPDK usage discussions
 help / color / mirror / Atom feed
From: Jordan Caraballo <jordancaraballo87@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] chelsio T-580_CR FreeBSD DPDK link down
Date: Sat, 15 Jul 2017 10:05:05 -0400	[thread overview]
Message-ID: <CABoP_STKX1_ii7jiZcqRSA0yw8M_V+gMvdrfEdZfV5sb2gdDVQ@mail.gmail.com> (raw)

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 <mbuf_pool_socket_0>: 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

             reply	other threads:[~2017-07-15 14:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-15 14:05 Jordan Caraballo [this message]
2017-07-15 18:52 ` Don maillist
2017-07-16  0:37   ` Caraballo-Vega, Jordan A. (GSFC-6062)[COMPUTER SCIENCE CORP]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABoP_STKX1_ii7jiZcqRSA0yw8M_V+gMvdrfEdZfV5sb2gdDVQ@mail.gmail.com \
    --to=jordancaraballo87@gmail.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).