From 8d9e3a49fcd5b9e0e776a7dd7c278d1651a8ec83 Mon Sep 17 00:00:00 2001 From: Kyle McClammy Date: Sun, 13 Oct 2024 02:38:52 +0000 Subject: [PATCH] Enabled sfc driver build Added SFN7042Q adapter and VFs to init.c and driver.c --- build/external/packages/dpdk.mk | 1 - src/plugins/dpdk/device/driver.c | 4 ++++ src/plugins/dpdk/device/init.c | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/build/external/packages/dpdk.mk b/build/external/packages/dpdk.mk index 7512ad838466..73137a3903ae 100644 --- a/build/external/packages/dpdk.mk +++ b/build/external/packages/dpdk.mk @@ -80,7 +80,6 @@ DPDK_DRIVERS_DISABLED := baseband/\*, \ net/liquidio, \ net/pcap, \ net/pfe, \ - net/sfc, \ net/softnic, \ net/thunderx, \ raw/ifpga, \ diff --git a/src/plugins/dpdk/device/driver.c b/src/plugins/dpdk/device/driver.c index 9c368dd90386..f493a5e1f069 100644 --- a/src/plugins/dpdk/device/driver.c +++ b/src/plugins/dpdk/device/driver.c @@ -129,6 +129,10 @@ static dpdk_driver_t dpdk_drivers[] = { { .drivers = DPDK_DRIVERS ({ "net_gve", "Google vNIC" }), .interface_name_prefix = "VirtualFunctionEthernet", + }, + { + .drivers = DPDK_DRIVERS ({ "net_sfc_efx", "Solarflare SFN7042Q" }), + .interface_name_prefix = "FortyGigabitEthernet", } }; diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c index e63a281a1752..c20b5517af67 100644 --- a/src/plugins/dpdk/device/init.c +++ b/src/plugins/dpdk/device/init.c @@ -796,6 +796,10 @@ dpdk_bind_devices_to_uio (dpdk_config_main_t * conf) /* Google vNIC */ else if (d->vendor_id == 0x1ae0 && d->device_id == 0x0042) ; + /* Solarflare SFN7042Q */ + else if (d->vendor_id == 0x1924 && + (d->device_id == 0x0923 || d->device_id == 0x1923)) + ; else { dpdk_log_warn ("Unsupported PCI device 0x%04x:0x%04x found "