net/cxgbe: query firmware for filter resources
[dpdk.git] / drivers / net / cxgbe / cxgbe_ofld.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2018 Chelsio Communications.
3  * All rights reserved.
4  */
5
6 #ifndef _CXGBE_OFLD_H_
7 #define _CXGBE_OFLD_H_
8
9 #include <rte_bitmap.h>
10
11 #include "cxgbe_filter.h"
12
13 /*
14  * Holds the size, base address, free list start, etc of filter TID.
15  * The tables themselves are allocated dynamically.
16  */
17 struct tid_info {
18         void **tid_tab;
19         unsigned int ntids;
20         struct filter_entry *ftid_tab;  /* Normal filters */
21         struct rte_bitmap *ftid_bmap;
22         uint8_t *ftid_bmap_array;
23         unsigned int nftids;
24         unsigned int ftid_base;
25         rte_spinlock_t ftid_lock;
26 };
27 #endif /* _CXGBE_OFLD_H_ */