1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2014-2018 Broadcom
12 struct bnxt_vnic_info {
13 STAILQ_ENTRY(bnxt_vnic_info) next;
16 uint16_t fw_vnic_id; /* returned by Chimp during alloc */
18 uint16_t start_grp_id;
21 uint16_t num_lb_ctxts;
22 uint16_t dflt_ring_grp;
26 rte_iova_t rss_table_dma_addr;
28 rte_iova_t rss_hash_key_dma_addr;
30 rte_iova_t mc_list_dma_addr;
33 #define BNXT_MAX_MC_ADDRS 16
35 #define BNXT_VNIC_INFO_PROMISC (1 << 0)
36 #define BNXT_VNIC_INFO_ALLMULTI (1 << 1)
37 #define BNXT_VNIC_INFO_BCAST (1 << 2)
38 #define BNXT_VNIC_INFO_UCAST (1 << 3)
39 #define BNXT_VNIC_INFO_MCAST (1 << 4)
40 #define BNXT_VNIC_INFO_TAGGED (1 << 5)
41 #define BNXT_VNIC_INFO_UNTAGGED (1 << 6)
52 STAILQ_HEAD(, bnxt_filter_info) filter;
53 STAILQ_HEAD(, rte_flow) flow_list;
57 void bnxt_init_vnics(struct bnxt *bp);
58 int bnxt_free_vnic(struct bnxt *bp, struct bnxt_vnic_info *vnic,
60 struct bnxt_vnic_info *bnxt_alloc_vnic(struct bnxt *bp);
61 void bnxt_free_all_vnics(struct bnxt *bp);
62 void bnxt_free_vnic_attributes(struct bnxt *bp);
63 int bnxt_alloc_vnic_attributes(struct bnxt *bp);
64 void bnxt_free_vnic_mem(struct bnxt *bp);
65 int bnxt_alloc_vnic_mem(struct bnxt *bp);