DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] using a KNI with vdevs
@ 2018-10-01 20:53 Cody Doucette
  0 siblings, 0 replies; only message in thread
From: Cody Doucette @ 2018-10-01 20:53 UTC (permalink / raw)
  To: users

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-10-01 20:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-01 20:53 [dpdk-users] using a KNI with vdevs Cody Doucette

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).