DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] virtio: rte_ethdev port_ids consumed by rte_eal_init()
@ 2018-04-12 18:30 Dennis Montgomery
  0 siblings, 0 replies; only message in thread
From: Dennis Montgomery @ 2018-04-12 18:30 UTC (permalink / raw)
  To: dev

Hi,

I've run into a problem with DPDK v17.08, when built with
CONFIG_RTE_LIBRTE_VIRTIO_PMD=y.  After rte_eal_init() calls rte_bus_probe()
we end up with the first several entries (matching the number of virtio-pci
eth devices on the system) in rte_eth_devices[] showing state ==
RTE_ETH_DEV_ATTACHED.  Subsequently when we try to allocate a new device
(via rte_eth_dev_attach()), rte_eth_dev_find_free_port() returns a nonzero
number the for the first device we really want to use.  The device
functions properly so this isn't too much of a problem, but effectively it
limits the number of virtio eth devices to be half of RTE_MAX_ETHPORTS.

I'd greatly appreciate some guidance on how to work around this - i.e.
whether it's fixed in a newer release or if the structures filled in by
rte_bus_probe() can be started without attaching, or whatever.

Thanks in advance,

Dennis Montgomery

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

only message in thread, other threads:[~2018-04-12 18:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-12 18:30 [dpdk-dev] virtio: rte_ethdev port_ids consumed by rte_eal_init() Dennis Montgomery

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