From: Rastislav Cernay Date: Thu, 13 Jun 2019 12:33:41 +0000 (+0200) Subject: net/nfb: support Silicom Mango card X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f37c57a1a33027e8e3a686107f3b8feb13c132ba;p=dpdk.git net/nfb: support Silicom Mango card Add support for Silicom FB2CGG3 smart NIC Signed-off-by: Rastislav Cernay --- diff --git a/doc/guides/nics/nfb.rst b/doc/guides/nics/nfb.rst index 8df76c077e..3d93904040 100644 --- a/doc/guides/nics/nfb.rst +++ b/doc/guides/nics/nfb.rst @@ -6,9 +6,9 @@ NFB poll mode driver library ================================= The NFB poll mode driver library implements support for the Netcope -FPGA Boards (**NFB-***), FPGA-based programmable NICs. -The NFB PMD uses interface provided by the libnfb library to communicate -with the NFB cards over the nfb layer. +FPGA Boards (**NFB-40G2, NFB-100G2, NFB-200G2QL**) and Silicom **FB2CGG3** card, +FPGA-based programmable NICs. The NFB PMD uses interface provided by the libnfb +library to communicate with these cards over the nfb layer. More information about the `NFB cards `_ diff --git a/drivers/net/nfb/nfb.h b/drivers/net/nfb/nfb.h index fe9fb96daf..9d477ba3ac 100644 --- a/drivers/net/nfb/nfb.h +++ b/drivers/net/nfb/nfb.h @@ -17,11 +17,14 @@ /* PCI Vendor ID */ #define PCI_VENDOR_ID_NETCOPE 0x1b26 +#define PCI_VENDOR_ID_SILICOM 0x1c2c /* PCI Device IDs */ #define PCI_DEVICE_ID_NFB_40G2 0xcb80 #define PCI_DEVICE_ID_NFB_100G2 0xc2c1 #define PCI_DEVICE_ID_NFB_200G2QL 0xc250 +#define PCI_DEVICE_ID_FB2CGG3 0x00d0 +#define PCI_DEVICE_ID_FB2CGG3D 0xc240 /* Max index of ndp rx/tx queues */ #define RTE_ETH_NDP_MAX_RX_QUEUES 32 diff --git a/drivers/net/nfb/nfb_ethdev.c b/drivers/net/nfb/nfb_ethdev.c index 6f77864249..3472a8df60 100644 --- a/drivers/net/nfb/nfb_ethdev.c +++ b/drivers/net/nfb/nfb_ethdev.c @@ -525,6 +525,8 @@ static const struct rte_pci_id nfb_pci_id_table[] = { { RTE_PCI_DEVICE(PCI_VENDOR_ID_NETCOPE, PCI_DEVICE_ID_NFB_40G2) }, { RTE_PCI_DEVICE(PCI_VENDOR_ID_NETCOPE, PCI_DEVICE_ID_NFB_100G2) }, { RTE_PCI_DEVICE(PCI_VENDOR_ID_NETCOPE, PCI_DEVICE_ID_NFB_200G2QL) }, + { RTE_PCI_DEVICE(PCI_VENDOR_ID_SILICOM, PCI_DEVICE_ID_FB2CGG3) }, + { RTE_PCI_DEVICE(PCI_VENDOR_ID_SILICOM, PCI_DEVICE_ID_FB2CGG3D) }, { .vendor_id = 0, } };