[dpdk-dev] [PATCH 02/61] send FW version driver state to MFW
    Ferruh Yigit 
    ferruh.yigit at intel.com
       
    Fri Mar  3 11:26:10 CET 2017
    
    
  
On 2/27/2017 7:56 AM, Rasesh Mody wrote:
> Add support to send FW version and driver state to Management FW.
> 
> Signed-off-by: Rasesh Mody <rasesh.mody at cavium.com>
<...>
> -	return ECORE_SUCCESS;
> +	if (IS_PF(p_dev)) {
> +		p_hwfn = ECORE_LEADING_HWFN(p_dev);
> +		drv_mb_param = (FW_MAJOR_VERSION << 24) |
> +			       (FW_MINOR_VERSION << 16) |
> +			       (FW_REVISION_VERSION << 8) |
> +			       (FW_ENGINEERING_VERSION);
> +		rc = ecore_mcp_cmd(p_hwfn, p_hwfn->p_main_ptt,
> +				   DRV_MSG_CODE_OV_UPDATE_STORM_FW_VER,
> +				   drv_mb_param, &load_code, ¶m);
> +		if (rc != ECORE_SUCCESS) {
> +			DP_ERR(p_hwfn, "Failed to send firmware version\n");
> +			return rc;
> +		}
> +
> +		rc = ecore_mcp_ov_update_driver_state(p_hwfn,
> +						      p_hwfn->p_main_ptt,
> +						ECORE_OV_DRIVER_STATE_DISABLED);
Is this something that effects end user, the application that uses this PMD?
> +	}
> +
> +	return rc;
>  }
>  
<...>
    
    
More information about the dev
mailing list