aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device/init.c
diff options
context:
space:
mode:
authorRadu Nicolau <radu.nicolau@intel.com>2017-03-08 12:53:19 +0000
committerDamjan Marion <dmarion.lists@gmail.com>2017-03-08 15:57:38 +0000
commit24537ca721371408e2e2b6e2663b7c43a43ecac3 (patch)
treec315670beb2a0a230c1e45508a516278464a3ec3 /src/plugins/dpdk/device/init.c
parent6786f1b5f8401d1ebc843b77e7d7315d34f3895d (diff)
dpdk: Fixed QAT devices binding, bind the VFs only
Change-Id: I9ff64b6c583e1c513f91f90798298b55d0793f06 Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Diffstat (limited to 'src/plugins/dpdk/device/init.c')
-rwxr-xr-xsrc/plugins/dpdk/device/init.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c
index e009ef3e296..0130c0e98bd 100755
--- a/src/plugins/dpdk/device/init.c
+++ b/src/plugins/dpdk/device/init.c
@@ -1125,8 +1125,12 @@ dpdk_bind_devices_to_uio (dpdk_config_main_t * conf)
/* vmxnet3 */
else if (d->vendor_id == 0x15ad && d->device_id == 0x07b0)
;
- /* all Intel devices */
- else if (d->vendor_id == 0x8086)
+ /* all Intel network devices */
+ else if (d->vendor_id == 0x8086 && d->device_class == PCI_CLASS_NETWORK_ETHERNET)
+ ;
+ /* all Intel QAT devices VFs */
+ else if (d->vendor_id == 0x8086 && d->device_class == PCI_CLASS_PROCESSOR_CO &&
+ (d->device_id == 0x0443 || d->device_id == 0x37c9 || d->device_id == 0x19e3))
;
/* Cisco VIC */
else if (d->vendor_id == 0x1137 && d->device_id == 0x0043)
@@ -1136,7 +1140,7 @@ dpdk_bind_devices_to_uio (dpdk_config_main_t * conf)
;
else
{
- clib_warning ("Unsupported Ethernet PCI device 0x%04x:0x%04x found "
+ clib_warning ("Unsupported PCI device 0x%04x:0x%04x found "
"at PCI address %s\n", (u16) d->vendor_id, (u16) d->device_id,
pci_addr);
continue;