From aed4d03268ab970208c9173892715d9cebcf75d2 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Mon, 1 Feb 2016 14:22:25 -0800 Subject: remove igb_uio static pci id table patch, use new_id for all NICs Change-Id: I1db64d62c19c28b50f58f9d0b009e3e89e331f71 Signed-off-by: Damjan Marion --- vnet/vnet/devices/dpdk/init.c | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'vnet') diff --git a/vnet/vnet/devices/dpdk/init.c b/vnet/vnet/devices/dpdk/init.c index f2ba79d4dba..67ed251c88f 100644 --- a/vnet/vnet/devices/dpdk/init.c +++ b/vnet/vnet/devices/dpdk/init.c @@ -862,25 +862,11 @@ static clib_error_t * dpdk_bind_eth_kernel_drivers (vlib_main_t * vm, */ if (bind_uio) { - int pci_vendor_id = strtol((char *) pci_vid, NULL, 16); - int pci_device_id = strtol((char *) pci_did, NULL, 16); - - /* - * Set PCI ID to ".../virtio-pci/new_id" for Intel fortvile adapaters - */ - if (pci_vendor_id == 0x8086 && - (pci_device_id == I40E_DEV_ID_10G_BASE_T || - pci_device_id == I40E_DEV_ID_SFP_XL710 || - pci_device_id == I40E_DEV_ID_QSFP_A || - pci_device_id == I40E_DEV_ID_QSFP_B || - pci_device_id == I40E_DEV_ID_QSFP_C)) - { - _vec_len (path) = 0; - path = format (path, "/sys/bus/pci/drivers/%s/new_id%c", driver_name, 0); - error = write_sys_fs ((char *) path, "%s %s", pci_vid, pci_did); - if (error) - continue; - } + _vec_len (path) = 0; + path = format (path, "/sys/bus/pci/drivers/%s/new_id%c", driver_name, 0); + error = write_sys_fs ((char *) path, "%s %s", pci_vid, pci_did); + if (error) + continue; _vec_len (path) = 0; path = format (path, "/sys/bus/pci/drivers/%s/bind%c", driver_name, 0); -- cgit 1.2.3-korg