dpdk: enable Google Virtual Ethernet 80/38480/2
authorMarvin Liu <yong.liu@intel.com>
Tue, 14 Mar 2023 19:41:26 +0000 (03:41 +0800)
committerDamjan Marion <dmarion@0xa5.net>
Tue, 14 Mar 2023 20:10:19 +0000 (20:10 +0000)
Recognize and drive google virtual ethernet (gve) in google cloud.

Type: feature

Signed-off-by: Marvin Liu <yong.liu@intel.com>
Change-Id: Ia559615ac059cabbca5d10bcd4049e87beaad638

src/plugins/dpdk/device/driver.c
src/plugins/dpdk/device/init.c

index eef191e..4b13e03 100644 (file)
@@ -125,6 +125,10 @@ static dpdk_driver_t dpdk_drivers[] = {
     .n_tx_desc = 256,
     .mq_mode_none = 1,
     .enable_rxq_int = 1,
+  },
+  {
+    .drivers = DPDK_DRIVERS ({ "net_gve", "Google vNIC" }),
+    .interface_name_prefix = "VirtualFunctionEthernet",
   }
 };
 
index 74181ea..847affe 100644 (file)
@@ -676,6 +676,9 @@ dpdk_bind_devices_to_uio (dpdk_config_main_t * conf)
         d->device_id == 0x1614 || d->device_id == 0x1606 ||
         d->device_id == 0x1609 || d->device_id == 0x1614)))
       ;
+    /* Google vNIC */
+    else if (d->vendor_id == 0x1ae0 && d->device_id == 0x0042)
+      ;
     else
       {
         dpdk_log_warn ("Unsupported PCI device 0x%04x:0x%04x found "