From: Rastislav Cernay Date: Thu, 13 Jun 2019 13:01:46 +0000 (+0200) Subject: net/szedata2: support Silicom Mango card X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6595e2f72e263a4741a6e5d854baedd440f9bd4b;p=dpdk.git net/szedata2: support Silicom Mango card Add support for Silicom FB2CGG3 smart NIC Signed-off-by: Rastislav Cernay Acked-by: Jan Remes --- diff --git a/doc/guides/nics/szedata2.rst b/doc/guides/nics/szedata2.rst index 94dba82d95..30710a80b8 100644 --- a/doc/guides/nics/szedata2.rst +++ b/doc/guides/nics/szedata2.rst @@ -5,9 +5,9 @@ SZEDATA2 poll mode driver library ================================= The SZEDATA2 poll mode driver library implements support for the Netcope -FPGA Boards (**NFB-***), FPGA-based programmable NICs. -The SZEDATA2 PMD uses interface provided by the libsze2 library to communicate -with the NFB cards over the sze2 layer. +FPGA Boards (**NFB-40G2, NFB-100G2, NFB-200G2QL**) and Silicom **FB2CGG3** card, +FPGA-based programmable NICs. The SZEDATA2 PMD uses interface provided by the libsze2 +library to communicate with the NFB cards over the sze2 layer. More information about the `NFB cards `_ diff --git a/drivers/net/szedata2/rte_eth_szedata2.c b/drivers/net/szedata2/rte_eth_szedata2.c index c1ea6fc65f..d5dec1b755 100644 --- a/drivers/net/szedata2/rte_eth_szedata2.c +++ b/drivers/net/szedata2/rte_eth_szedata2.c @@ -1567,6 +1567,14 @@ static const struct rte_pci_id rte_szedata2_pci_id_table[] = { RTE_PCI_DEVICE(PCI_VENDOR_ID_NETCOPE, PCI_DEVICE_ID_NETCOPE_NFB200G2QL) }, + { + 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, } diff --git a/drivers/net/szedata2/rte_eth_szedata2.h b/drivers/net/szedata2/rte_eth_szedata2.h index 26a82b35cb..6453ea0f92 100644 --- a/drivers/net/szedata2/rte_eth_szedata2.h +++ b/drivers/net/szedata2/rte_eth_szedata2.h @@ -13,12 +13,15 @@ /* PCI Vendor ID */ #define PCI_VENDOR_ID_NETCOPE 0x1b26 +#define PCI_VENDOR_ID_SILICOM 0x1c2c /* PCI Device IDs */ #define PCI_DEVICE_ID_NETCOPE_COMBO80G 0xcb80 #define PCI_DEVICE_ID_NETCOPE_COMBO100G 0xc1c1 #define PCI_DEVICE_ID_NETCOPE_COMBO100G2 0xc2c1 #define PCI_DEVICE_ID_NETCOPE_NFB200G2QL 0xc250 +#define PCI_DEVICE_ID_FB2CGG3 0x00d0 +#define PCI_DEVICE_ID_FB2CGG3D 0xc240 /* szedata2_packet header length == 4 bytes == 2B segment size + 2B hw size */ #define RTE_SZE2_PACKET_HEADER_SIZE 4