/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2019 Cesnet * Copyright(c) 2019 Netcope Technologies, a.s. * All rights reserved. */ #ifndef _NFB_H_ #define _NFB_H_ #include #include #include #include #include "nfb_rx.h" #include "nfb_tx.h" /* PCI Vendor ID */ #define PCI_VENDOR_ID_NETCOPE 0x1b26 /* PCI Device IDs */ #define PCI_DEVICE_ID_NFB_40G2 0xcb80 #define PCI_DEVICE_ID_NFB_100G2 0xc2c1 #define PCI_DEVICE_ID_NFB_200G2QL 0xc250 /* Max index of ndp rx/tx queues */ #define RTE_ETH_NDP_MAX_RX_QUEUES 32 #define RTE_ETH_NDP_MAX_TX_QUEUES 32 /* Max index of rx/tx dmas */ #define RTE_MAX_NC_RXMAC 256 #define RTE_MAX_NC_TXMAC 256 #define RTE_NFB_DRIVER_NAME net_nfb struct pmd_internals { uint16_t max_rxmac; uint16_t max_txmac; struct nc_rxmac *rxmac[RTE_MAX_NC_RXMAC]; struct nc_txmac *txmac[RTE_MAX_NC_TXMAC]; char nfb_dev[PATH_MAX]; struct nfb_device *nfb; /* Place to remember if filter was promiscuous or filtering by table, * when disabling allmulticast */ enum nc_rxmac_mac_filter rx_filter_original; }; #endif /* _NFB_H_ */