dpdk: add Mellanox BlueField NICs 83/39583/8
authorAlexander Kozyrev <akozyrev@nvidia.com>
Mon, 25 Sep 2023 15:11:55 +0000 (15:11 +0000)
committerDamjan Marion <dmarion@0xa5.net>
Thu, 12 Oct 2023 20:44:48 +0000 (20:44 +0000)
List BlueField NICs as a supported PCI devices.

Type: feature
Change-Id: Ida2300df516ab9cd2fcde1f816bbdc081016039a
Signed-off-by: Alexander Kozyrev <akozyrev@nvidia.com>
src/plugins/dpdk/device/init.c

index 897cd2c..d88dad4 100644 (file)
@@ -679,6 +679,18 @@ dpdk_bind_devices_to_uio (dpdk_config_main_t * conf)
       {
        continue;
       }
+    /* Mellanox BF, BFVF */
+    else if (d->vendor_id == 0x15b3 &&
+            (d->device_id >= 0xa2d2 && d->device_id <= 0Xa2d3))
+      {
+       continue;
+      }
+    /* Mellanox BF2, BF3 */
+    else if (d->vendor_id == 0x15b3 &&
+            (d->device_id == 0xa2d6 || d->device_id == 0xa2dc))
+      {
+       continue;
+      }
     /* Broadcom NetXtreme S, and E series only */
     else if (d->vendor_id == 0x14e4 &&
        ((d->device_id >= 0x16c0 &&