net/ice/base: enable flow director for IPv6 next protocol
[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 #define ICE_PROTO_GRP_TABLE_SIZE 192
10
11 struct ice_proto_off {
12         bool polarity; /* true: positive, false: nagtive */
13         u8 proto_id;
14         u16 offset;
15 };
16
17 struct ice_proto_grp_item {
18         u16 idx;
19         struct ice_proto_off po[ICE_PROTO_COUNT_PER_GRP];
20 };
21
22 void ice_proto_grp_dump(struct ice_hw *hw, struct ice_proto_grp_item *item);
23 struct ice_proto_grp_item *ice_proto_grp_table_get(struct ice_hw *hw);
24 #endif /* _ICE_PROTO_GRP_H_ */