src/dpdk/drivers/net/ice/base/ice_vlan_mode.c
static bool ice_aq_is_dvm_ena(struct ice_hw *hw)
{
	struct ice_aqc_get_vlan_mode get_params = { 0 };
	enum ice_status status;

	status = ice_aq_get_vlan_mode(hw, &get_params);
	if (status) {
		ice_debug(hw, ICE_DBG_AQ, "Failed to get VLAN mode, status %d\n",
			  status);
		return false;
	}

	return (get_params.vlan_mode & ICE_AQ_VLAN_MODE_DVM_ENA);
}
/**
 * ice_aq_is_dvm_ena - query FW to check if double VLAN mode is enabled
 * @hw: pointer to the HW structure
 *
 * Returns true if the hardware/firmware is configured in double VLAN mode,
 * else return false signaling that the hardware/firmware is configured in
 * single VLAN mode.
 *
 * Also, return false if this call fails for any reason (i.e. firmware doesn't
 * support this AQ call).
 */
query FW to check if double VLAN mode is enabled
@hw: pointer to the HW structure

Returns true if the hardware/firmware is configured in double VLAN mode,
else return false signaling that the hardware/firmware is configured in
single VLAN mode.

Also, return false if this call fails for any reason .
query FW to check if double VLAN mode is enabled @hw : pointer to the HW structure Returns true if the hardware / firmware is configured in double VLAN mode else return false signaling that the hardware / firmware is configured in single VLAN mode . Also return false if this call fails for any reason .
static bool ice_aq_is_dvm_ena(struct ice_hw *hw)
{
	struct ice_aqc_get_vlan_mode get_params = { 0 };
	enum ice_status status;
	status = ice_aq_get_vlan_mode(hw, &get_params);
	if (status) {
		ice_debug(hw, ICE_DBG_AQ, "Failed to get VLAN mode, status %d\n",
			  status);
		return false;
	}
	return (get_params.vlan_mode & ICE_AQ_VLAN_MODE_DVM_ENA);
}
static bool ice_aq_is_dvm_ena ( struct ice_hw * hw ) { struct ice_aqc_get_vlan_mode get_params = { 0 } ; enum ice_status status ; status = ice_aq_get_vlan_mode ( hw , & get_params ) ; if ( status ) { ice_debug ( hw , ICE_DBG_AQ , " \n " , status ) ; return false ; } return ( get_params . vlan_mode & ICE_AQ_VLAN_MODE_DVM_ENA ) ; }
ice_aq_is_dvm_ena - query FW to check if double VLAN mode is enabled
 @hw: pointer to the HW structure
ice_aq_is_dvm_ena - query FW to check if double VLAN mode is enabled @hw : pointer to the HW structure