src/dpdk/drivers/net/ice/base/ice_vlan_mode.c
static enum ice_status ice_dvm_update_dflt_recipes(struct ice_hw *hw)
{
	unsigned long i;

	for (i = 0; i < ARRAY_SIZE(ice_dvm_dflt_recipes); i++) {
		struct ice_update_recipe_lkup_idx_params *params;
		enum ice_status status;

		params = &ice_dvm_dflt_recipes[i];

		status = ice_update_recipe_lkup_idx(hw, params);
		if (status) {
			ice_debug(hw, ICE_DBG_INIT, "Failed to update RID %d lkup_idx %d fv_idx %d mask_valid %s mask 0x%04x\n",
				  params->rid, params->lkup_idx, params->fv_idx,
				  params->mask_valid ? "true" : "false",
				  params->mask);
			return status;
		}
	}

	return ICE_SUCCESS;
}
/**
 * ice_dvm_update_dflt_recipes - update default switch recipes in DVM
 * @hw: hardware structure used to update the recipes
 */
update default switch recipes in DVM
@hw: hardware structure used to update the recipes
update default switch recipes in DVM @hw : hardware structure used to update the recipes
static enum ice_status ice_dvm_update_dflt_recipes(struct ice_hw *hw)
{
	unsigned long i;
	for (i = 0; i < ARRAY_SIZE(ice_dvm_dflt_recipes); i++) {
		struct ice_update_recipe_lkup_idx_params *params;
		enum ice_status status;
		params = &ice_dvm_dflt_recipes[i];
		status = ice_update_recipe_lkup_idx(hw, params);
		if (status) {
			ice_debug(hw, ICE_DBG_INIT, "Failed to update RID %d lkup_idx %d fv_idx %d mask_valid %s mask 0x%04x\n",
				  params->rid, params->lkup_idx, params->fv_idx,
				  params->mask_valid ? "true" : "false",
				  params->mask);
			return status;
		}
	}
	return ICE_SUCCESS;
}
static enum ice_status ice_dvm_update_dflt_recipes ( struct ice_hw * hw ) { unsigned long i ; for ( i = 0 ; i < ARRAY_SIZE ( ice_dvm_dflt_recipes ) ; i ++ ) { struct ice_update_recipe_lkup_idx_params * params ; enum ice_status status ; params = & ice_dvm_dflt_recipes [ i ] ; status = ice_update_recipe_lkup_idx ( hw , params ) ; if ( status ) { ice_debug ( hw , ICE_DBG_INIT , " \n " , params -> rid , params -> lkup_idx , params -> fv_idx , params -> mask_valid ? " " : " " , params -> mask ) ; return status ; } } return ICE_SUCCESS ; }
ice_dvm_update_dflt_recipes - update default switch recipes in DVM
 @hw: hardware structure used to update the recipes
ice_dvm_update_dflt_recipes - update default switch recipes in DVM @hw : hardware structure used to update the recipes