1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2001-2021 Intel Corporation
5 #include "ice_common.h"
8 * ice_parser_create - create a parser instance
9 * @hw: pointer to the hardware structure
10 * @psr: output parameter for a new parser instance be created
12 enum ice_status ice_parser_create(struct ice_hw *hw, struct ice_parser **psr)
16 p = (struct ice_parser *)ice_malloc(hw, sizeof(struct ice_parser));
19 return ICE_ERR_NO_MEMORY;
28 * ice_parser_destroy - destroy a parser instance
29 * @psr: pointer to a parser instance
31 void ice_parser_destroy(struct ice_parser *psr)
33 ice_free(psr->hw, psr);