cc3f51e466
Add API ice_parser_dvm_set to support turn on/off parser's double vlan mode. Signed-off-by: Qi Zhang <qi.z.zhang@intel.com> Acked-by: Junfeng Guo <junfeng.guo@intel.com>
36 lines
895 B
C
36 lines
895 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2001-2021 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _ICE_BST_TCAM_H_
|
|
#define _ICE_BST_TCAM_H_
|
|
|
|
#include "ice_imem.h"
|
|
|
|
struct ice_bst_tcam_item {
|
|
u16 address;
|
|
u8 key[20];
|
|
u8 key_inv[20];
|
|
u8 hit_idx_grp;
|
|
u8 pg_pri;
|
|
struct ice_np_keybuilder np_kb;
|
|
struct ice_pg_keybuilder pg_kb;
|
|
struct ice_alu alu0;
|
|
struct ice_alu alu1;
|
|
struct ice_alu alu2;
|
|
};
|
|
|
|
void ice_bst_tcam_dump(struct ice_hw *hw, struct ice_bst_tcam_item *item);
|
|
|
|
struct ice_bst_tcam_item *ice_bst_tcam_table_get(struct ice_hw *hw);
|
|
|
|
struct ice_lbl_item *ice_bst_lbl_table_get(struct ice_hw *hw);
|
|
|
|
struct ice_bst_tcam_item *
|
|
ice_bst_tcam_match(struct ice_bst_tcam_item *tcam_table, u8 *pat);
|
|
struct ice_bst_tcam_item *
|
|
ice_bst_tcam_search(struct ice_bst_tcam_item *tcam_table,
|
|
struct ice_lbl_item *lbl_table,
|
|
const char *prefix, u16 *start);
|
|
#endif /*_ICE_BST_TCAM_H_ */
|