Lines Matching defs:npc_mcam
162 struct npc_mcam { struct
163 struct rsrc_bmap counters;
164 struct mutex lock; /* MCAM entries and counters update lock */
165 unsigned long *bmap; /* bitmap, 0 => bmap_entries */
166 unsigned long *bmap_reverse; /* Reverse bitmap, bmap_entries => 0 */
167 u16 bmap_entries; /* Number of unreserved MCAM entries */
168 u16 bmap_fcnt; /* MCAM entries free count */
169 u16 *entry2pfvf_map;
170 u16 *entry2cntr_map;
171 u16 *cntr2pfvf_map;
172 u16 *cntr_refcnt;
173 u16 *entry2target_pffunc;
174 u8 keysize; /* MCAM keysize 112/224/448 bits */
175 u8 banks; /* Number of MCAM banks */
176 u8 banks_per_entry;/* Number of keywords in key */
177 u16 banksize; /* Number of MCAM entries in each bank */
178 u16 total_entries; /* Total number of MCAM entries */
179 u16 nixlf_offset; /* Offset of nixlf rsvd uncast entries */
180 u16 pf_offset; /* Offset of PF's rsvd bcast, promisc entries */
181 u16 lprio_count;
182 u16 lprio_start;
183 u16 hprio_count;
184 u16 hprio_end;
185 u16 rx_miss_act_cntr; /* Counter for RX MISS action */
187 struct npc_key_field tx_key_fields[NPC_KEY_FIELDS_MAX];
188 struct npc_key_field rx_key_fields[NPC_KEY_FIELDS_MAX];
189 u64 tx_features;
190 u64 rx_features;
191 struct list_head mcam_rules;