[dpdk-dev] [PATCH v5 6/6] virtio: return 1 to tell the upper layer we don't take over this device
Thomas Monjalon
thomas.monjalon at 6wind.com
Thu Mar 10 00:23:41 CET 2016
2016-03-08 23:33, Huawei Xie:
> PMD_INIT_LOG(INFO, "trying with legacy virtio pci.");
> - if (legacy_virtio_resource_init(dev, hw) < 0)
> + if (legacy_virtio_resource_init(dev, hw) < 0) {
> + if (dev->kdrv == RTE_KDRV_UNKNOWN &&
> + dev->devargs->type != RTE_DEVTYPE_WHITELISTED_PCI) {
I still think you should add
&& dev->devargs->type != RTE_DEVTYPE_BLACKLISTED_PCI)
Not a big deal.
> + PMD_INIT_LOG(INFO,
> + "skip kernel managed virtio device.");
> + return 1;
> + }
> return -1;
More information about the dev
mailing list