xref: /dpdk/drivers/net/ice/base/ice_ptype_mk.h (revision 510965b4)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2001-2021 Intel Corporation
3  */
4 
5 #ifndef _ICE_PTYPE_MK_H_
6 #define _ICE_PTYPE_MK_H_
7 
8 struct ice_ptype_mk_tcam_item {
9 	u16 address;
10 	u16 ptype;
11 	u8 key[10];
12 	u8 key_inv[10];
13 };
14 
15 void ice_ptype_mk_tcam_dump(struct ice_hw *hw,
16 			    struct ice_ptype_mk_tcam_item *item);
17 struct ice_ptype_mk_tcam_item *ice_ptype_mk_tcam_table_get(struct ice_hw *hw);
18 struct ice_ptype_mk_tcam_item *
19 ice_ptype_mk_tcam_match(struct ice_ptype_mk_tcam_item *table,
20 			u8 *pat, int len);
21 #endif /* _ICE_PTYPE_MK_H_ */
22