net/ice/base: init metainit table for parser
[dpdk.git] / drivers / net / ice / base / ice_parser.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2001-2021 Intel Corporation
3  */
4
5 #ifndef _ICE_PARSER_H_
6 #define _ICE_PARSER_H_
7
8 struct ice_parser {
9         struct ice_hw *hw; /* pointer to the hardware structure */
10
11         /* load data from section ICE_SID_RX_PARSER_IMEM */
12         struct ice_imem_item *imem_table;
13         /* load data from section ICE_SID_RXPARSER_METADATA_INIT */
14         struct ice_metainit_item *mi_table;
15 };
16
17 enum ice_status ice_parser_create(struct ice_hw *hw, struct ice_parser **psr);
18 void ice_parser_destroy(struct ice_parser *psr);
19 #endif /* _ICE_PARSER_H_ */