From: Cody Doucette <doucette@bu.edu>
To: users <users@dpdk.org>
Subject: [dpdk-users] using a KNI with vdevs
Date: Mon, 1 Oct 2018 16:53:20 -0400 [thread overview]
Message-ID: <CAJjX64aR=hkax0GKXFsmOZaPtqHzNgxV-2iWPgJsDohOcic2HQ@mail.gmail.com> (raw)
Hi,
I'm trying to open a KNI using a virtual device (AF_PACKET), but am stuck
on trying to find something that's analogous to the PCI information for the
virtual device. I am using something like the code from the KNI example
application:
if (dev_info.device)
bus =
rte_bus_find_by_device(dev_info.device);
if (bus && !strcmp(bus->name, "pci")) {
pci_dev = RTE_DEV_TO_PCI(dev_info.device);
conf.addr = pci_dev->addr;
conf.id = pci_dev->id;
}
...
kni = rte_kni_alloc(pktmbuf_pool, &conf, &ops);
But rte_bus_find_by_device() returns NULL and the program crashes when
calling rte_kni_alloc() because conf.addr is never set.
Is there a way to use a KNI with a vdev?
Cody
reply other threads:[~2018-10-01 20:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CAJjX64aR=hkax0GKXFsmOZaPtqHzNgxV-2iWPgJsDohOcic2HQ@mail.gmail.com' \
--to=doucette@bu.edu \
--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).