[dpdk-dev] [PATCH 1/3] nic_uio: Fix to allow any device to be bound to nic_uio

Thomas Monjalon thomas.monjalon at 6wind.com
Mon Jul 20 01:23:45 CEST 2015


2015-07-17 23:50, Rahul Lakkireddy:
> nic_uio requires the pci ids to be present in rte_pci_dev_ids.h in order to
> bind the devices to nic_uio.  However, it's better to remove this whitelist of
> pci ids, and instead rely on hw.nic_uio.bdfs kenv parameter to allow binding
> any device to nic_uio.
[...]
> -	for (i = 0; i < NUM_DEVICES; i++)
> -		if (pci_get_vendor(dev) == devices[i].vend &&
> -			pci_get_device(dev) == devices[i].dev) {
> -
> +	for (i = 0; i < num_detached; i++)
> +		if (pci_get_vendor(dev) == pci_get_vendor(detached_devices[i]) &&
> +		    pci_get_device(dev) == pci_get_device(detached_devices[i])) {
>  			device_set_desc(dev, "Intel(R) DPDK PCI Device");

This is an old name. You can now rename "Intel(R) DPDK" to "DPDK".


More information about the dev mailing list