1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2019 Cesnet
3 * Copyright(c) 2019 Netcope Technologies, a.s. <info@netcope.com>
12 #include <netcope/rxmac.h>
13 #include <netcope/txmac.h>
19 #define PCI_VENDOR_ID_NETCOPE 0x1b26
22 #define PCI_DEVICE_ID_NFB_40G2 0xcb80
23 #define PCI_DEVICE_ID_NFB_100G2 0xc2c1
24 #define PCI_DEVICE_ID_NFB_200G2QL 0xc250
26 /* Max index of ndp rx/tx queues */
27 #define RTE_ETH_NDP_MAX_RX_QUEUES 32
28 #define RTE_ETH_NDP_MAX_TX_QUEUES 32
30 /* Max index of rx/tx dmas */
31 #define RTE_MAX_NC_RXMAC 256
32 #define RTE_MAX_NC_TXMAC 256
34 #define RTE_NFB_DRIVER_NAME net_nfb
36 struct pmd_internals {
39 struct nc_rxmac *rxmac[RTE_MAX_NC_RXMAC];
40 struct nc_txmac *txmac[RTE_MAX_NC_TXMAC];
42 char nfb_dev[PATH_MAX];
43 struct nfb_device *nfb;
44 /* Place to remember if filter was promiscuous or filtering by table,
45 * when disabling allmulticast
47 enum nc_rxmac_mac_filter rx_filter_original;