From b75d85b7668a132f72cbda92d65296b73e964780 Mon Sep 17 00:00:00 2001 From: Igor Romanov Date: Fri, 29 Oct 2021 18:33:30 +0300 Subject: [PATCH] net/sfc: support Xilinx Riverhead VF Add the device and vendor numbers to the PCI ID map so that a VF can be probed. Signed-off-by: Igor Romanov Signed-off-by: Andrew Rybchenko --- doc/guides/rel_notes/release_21_11.rst | 1 + drivers/net/sfc/sfc_ethdev.c | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/guides/rel_notes/release_21_11.rst b/doc/guides/rel_notes/release_21_11.rst index 3da555b73c..f6d07a58e7 100644 --- a/doc/guides/rel_notes/release_21_11.rst +++ b/doc/guides/rel_notes/release_21_11.rst @@ -204,6 +204,7 @@ New Features * Added port representors support on SN1000 SmartNICs * Added flow API transfer proxy support + * Added SN1000 virtual functions (VF) support * **Added power monitor API in vhost library.** diff --git a/drivers/net/sfc/sfc_ethdev.c b/drivers/net/sfc/sfc_ethdev.c index 6b0a7e6b0c..a8b971a6c4 100644 --- a/drivers/net/sfc/sfc_ethdev.c +++ b/drivers/net/sfc/sfc_ethdev.c @@ -2892,6 +2892,7 @@ static const struct rte_pci_id pci_id_sfc_efx_map[] = { { RTE_PCI_DEVICE(EFX_PCI_VENID_SFC, EFX_PCI_DEVID_MEDFORD2) }, { RTE_PCI_DEVICE(EFX_PCI_VENID_SFC, EFX_PCI_DEVID_MEDFORD2_VF) }, { RTE_PCI_DEVICE(EFX_PCI_VENID_XILINX, EFX_PCI_DEVID_RIVERHEAD) }, + { RTE_PCI_DEVICE(EFX_PCI_VENID_XILINX, EFX_PCI_DEVID_RIVERHEAD_VF) }, { .vendor_id = 0 /* sentinel */ } };