dpdk: add device IDs for Mellanox ConnectX-3 39/13539/2
authorMatthew Smith <mgsmith@netgate.com>
Wed, 18 Jul 2018 17:44:34 +0000 (12:44 -0500)
committerDamjan Marion <dmarion@me.com>
Thu, 19 Jul 2018 12:47:17 +0000 (12:47 +0000)
Recognize the PF and VF device IDs for the Mellanox adapter
used on Azure.

Change-Id: Ic7b36b37ac93db2b696354ffe6fa2b6d62ee3801
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/plugins/dpdk/device/init.c

index f090779..ebb43d1 100644 (file)
@@ -838,7 +838,12 @@ dpdk_bind_devices_to_uio (dpdk_config_main_t * conf)
     /* Cavium FastlinQ QL41000 Series */
     else if (d->vendor_id == 0x1077 && d->device_id >= 0x8070 && d->device_id <= 0x8090)
       ;
-    /* Mellanox  */
+    /* Mellanox mlx4 */
+    else if (d->vendor_id == 0x15b3 && d->device_id >= 0x1003 && d->device_id <= 0x104)
+      {
+        continue;
+      }
+    /* Mellanox mlx5 */
     else if (d->vendor_id == 0x15b3 && d->device_id >= 0x1013 && d->device_id <= 0x101a)
       {
         continue;