net/ice/base: add some helper macros
[dpdk.git] / drivers / net / ice / base / ice_flex_type.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2001-2018
3  */
4
5 #ifndef _ICE_FLEX_TYPE_H_
6 #define _ICE_FLEX_TYPE_H_
7
8 /* Extraction Sequence (Field Vector) Table */
9 struct ice_fv_word {
10         u8 prot_id;
11         u8 off;         /* Offset within the protocol header */
12 };
13
14 #define ICE_MAX_FV_WORDS 48
15 struct ice_fv {
16         struct ice_fv_word ew[ICE_MAX_FV_WORDS];
17 };
18
19 #endif /* _ICE_FLEX_TYPE_H_ */