From: Aniraj Kesavan <anirajkesavan@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] Need help understanding rte_eth_dev_count
Date: Tue, 11 Oct 2016 22:44:44 -0600 [thread overview]
Message-ID: <CAFOf+QWYzdqgnoM5RZ7_y+ZOHTrwh5SqcrfpdXQYmffZWNApNw@mail.gmail.com> (raw)
Hi,
I'm very new to dpdk and I'm trying to set it up on a cluster with the
following configuration:
DPDK - 16.07
Intel X710 2x10G Nics
Ubuntu 15.04
I could compile it, but when running sample applications such as
skeleton/basicfwd and testpmd, it fails saying the ports aren't detected.
I have done the following:
enabled 1G huge pages and mounted them under /dev/hugepages
ran dpdk-devbind.py on the interfaces after which the status shows:
Network devices using DPDK-compatible driver
============================================
0000:04:00.0 'Ethernet Controller X710 for 10GbE SFP+' drv=igb_uio unused=
0000:04:00.1 'Ethernet Controller X710 for 10GbE SFP+' drv=igb_uio unused=
While running gdb over the basicfwd application (run as sudo as it seemed
like a requirement), it seems like rte_eth_dev_count is returning 0. Even
the testpmd application is reporting no ports available. I have tried the
portmask option and tried to pass the interfaces as -w arguments too.
When I looked at rte_eth_dev_count, it's returning an unsigned static int
that is only updated by rte_eth_dev_allocate. Following the breadcrumbs, it
seemed like someone needed to invoke rte_eth_dev_register. I didn't see
that being called in the basicfwd example's codepath.
Can anyone tell me what usually causes rte_eth_dev_register to run and
update the port number? Or is there anything I might have missed in the
configuration that's causing the device to not show up when the library is
looking for it.
Thanks,
Aniraj
--
Aniraj Kesavan
MS CS '15-'17,
University Of Utah
CS '08-'12,
Govt. Model Engineering College
alternate e-mail:anirajkalathel@gmail.com
http://www.cs.utah.edu/~aniraj/
next reply other threads:[~2016-10-12 4:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-12 4:44 Aniraj Kesavan [this message]
[not found] ` <CAOysbxpmme2xHxi5SVUi1ZO3KDz+jWvsu_7b_AmMmXNHrkRO3g@mail.gmail.com>
2016-10-12 17:47 ` Aniraj Kesavan
2016-10-13 6:01 ` Muhammad Zain-ul-Abideen
2016-10-13 6:12 ` Aniraj Kesavan
2016-10-13 6:17 ` Muhammad Zain-ul-Abideen
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=CAFOf+QWYzdqgnoM5RZ7_y+ZOHTrwh5SqcrfpdXQYmffZWNApNw@mail.gmail.com \
--to=anirajkesavan@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).