net/mlx5: fix warning message 89/8389/2
authorShachar Beiser <shacharbe@mellanox.com>
Mon, 11 Sep 2017 08:06:18 +0000 (08:06 +0000)
committerDamjan Marion <dmarion.lists@gmail.com>
Tue, 12 Sep 2017 11:38:21 +0000 (11:38 +0000)
Add support for Mellanox provider id and vendor id

Change-Id: Ib2451e69fbe949f01bcb1ee556aa3020da225610
Signed-off-by: Shachar Beiser <shacharbe@mellanox.com>
src/plugins/dpdk/device/init.c

index 4ef3b67..59df808 100755 (executable)
@@ -686,6 +686,9 @@ dpdk_bind_devices_to_uio (dpdk_config_main_t * conf)
     /* Chelsio T4/T5 */
     else if (d->vendor_id == 0x1425 && (d->device_id & 0xe000) == 0x4000)
       ;
+    /* Mellanox  */
+    else if (d->vendor_id == 0x15b3 && d->device_id >= 0x1013 && d->device_id <= 0x101a)
+      ;
     else
       {
         clib_warning ("Unsupported PCI device 0x%04x:0x%04x found "