aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device
diff options
context:
space:
mode:
authorSteve Shin <jonshin@cisco.com>2017-09-26 10:07:58 -0700
committerJohn Lo <loj@cisco.com>2017-09-27 17:12:44 +0000
commit45c40dbb2c1fcafce17d5c901c9b317cde4b5cde (patch)
tree5252e6a8f2230a55496b27cbd39dbffba14be2a2 /src/plugins/dpdk/device
parent879ace3d3b238ec8db80f52ebfd556aa6f12b4c7 (diff)
Fix: unnecesary uio binding for Mellanox NIC
UIO binding is not required for Mellanox NIC and calling vlib_pci_bind_to_uio() should be skipped. Change-Id: I10ea457bc3c8d4be8117dec51d5bd940ee416a44 Signed-off-by: Steve Shin <jonshin@cisco.com>
Diffstat (limited to 'src/plugins/dpdk/device')
-rwxr-xr-xsrc/plugins/dpdk/device/init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c
index 4cd8841acbc..acf712ffced 100755
--- a/src/plugins/dpdk/device/init.c
+++ b/src/plugins/dpdk/device/init.c
@@ -692,7 +692,9 @@ dpdk_bind_devices_to_uio (dpdk_config_main_t * conf)
;
/* Mellanox */
else if (d->vendor_id == 0x15b3 && d->device_id >= 0x1013 && d->device_id <= 0x101a)
- ;
+ {
+ continue;
+ }
else
{
clib_warning ("Unsupported PCI device 0x%04x:0x%04x found "