src/dpdk/drivers/net/ice/base/ice_common.c
bool ice_fw_supports_lldp_fltr_ctrl(struct ice_hw *hw)
{
	if (hw->mac_type != ICE_MAC_E810)
		return false;

	if (hw->api_maj_ver == ICE_FW_API_LLDP_FLTR_MAJ) {
		if (hw->api_min_ver > ICE_FW_API_LLDP_FLTR_MIN)
			return true;
		if (hw->api_min_ver == ICE_FW_API_LLDP_FLTR_MIN &&
		    hw->api_patch >= ICE_FW_API_LLDP_FLTR_PATCH)
			return true;
	} else if (hw->api_maj_ver > ICE_FW_API_LLDP_FLTR_MAJ) {
		return true;
	}
	return false;
}
/**
 * ice_fw_supports_lldp_fltr - check NVM version supports lldp_fltr_ctrl
 * @hw: pointer to HW struct
 */
check NVM version supports lldp_fltr_ctrl
@hw: pointer to HW struct
check NVM version supports lldp_fltr_ctrl @hw : pointer to HW struct
bool ice_fw_supports_lldp_fltr_ctrl(struct ice_hw *hw)
{
	if (hw->mac_type != ICE_MAC_E810)
		return false;
	if (hw->api_maj_ver == ICE_FW_API_LLDP_FLTR_MAJ) {
		if (hw->api_min_ver > ICE_FW_API_LLDP_FLTR_MIN)
			return true;
		if (hw->api_min_ver == ICE_FW_API_LLDP_FLTR_MIN &&
		    hw->api_patch >= ICE_FW_API_LLDP_FLTR_PATCH)
			return true;
	} else if (hw->api_maj_ver > ICE_FW_API_LLDP_FLTR_MAJ) {
		return true;
	}
	return false;
}
bool ice_fw_supports_lldp_fltr_ctrl ( struct ice_hw * hw ) { if ( hw -> mac_type != ICE_MAC_E810 ) return false ; if ( hw -> api_maj_ver == ICE_FW_API_LLDP_FLTR_MAJ ) { if ( hw -> api_min_ver > ICE_FW_API_LLDP_FLTR_MIN ) return true ; if ( hw -> api_min_ver == ICE_FW_API_LLDP_FLTR_MIN && hw -> api_patch >= ICE_FW_API_LLDP_FLTR_PATCH ) return true ; } else if ( hw -> api_maj_ver > ICE_FW_API_LLDP_FLTR_MAJ ) { return true ; } return false ; }
ice_fw_supports_lldp_fltr - check NVM version supports lldp_fltr_ctrl
 @hw: pointer to HW struct
ice_fw_supports_lldp_fltr - check NVM version supports lldp_fltr_ctrl @hw : pointer to HW struct