net/ice/base: support tunnel port for parser
[dpdk.git] / drivers / net / ice / base / ice_proto_grp.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2001-2021 Intel Corporation
3  */
4
5 #ifndef _ICE_PROTO_GRP_H_
6 #define _ICE_PROTO_GRP_H_
7
8 #define ICE_PROTO_COUNT_PER_GRP 8
9
10 struct ice_proto_off {
11         bool polarity; /* true: positive, false: nagtive */
12         u8 proto_id;
13         u16 offset;
14 };
15
16 struct ice_proto_grp_item {
17         u16 idx;
18         struct ice_proto_off po[ICE_PROTO_COUNT_PER_GRP];
19 };
20
21 void ice_proto_grp_dump(struct ice_hw *hw, struct ice_proto_grp_item *item);
22 struct ice_proto_grp_item *ice_proto_grp_table_get(struct ice_hw *hw);
23 #endif /* _ICE_PROTO_GRP_H_ */