FreeBSD/sys/dev/ixl/ixlvc.c
/*
** ixlv_send_pf_msg
**
** Send message to PF and print status if failure.
*/
ixlv_send_pf_msg
Send message to PF and print status if failure.
ixlv_send_pf_msg Send message to PF and print status if failure .
static int
ixlv_send_pf_msg(struct ixlv_sc *sc,
	enum i40e_virtchnl_ops op, u8 *msg, u16 len)
{
	struct i40e_hw	*hw = &sc->hw;
	device_t	dev = sc->dev;
	i40e_status	err;
#ifdef IXL_DEBUG
	int val_err;
	val_err = ixl_vc_validate_vf_msg(sc, op, msg, len);
	if (val_err)
		device_printf(dev, "Error validating msg to PF for op %d,"
		    " msglen %d: error %d\n", op, len, val_err);
#endif
	err = i40e_aq_send_msg_to_pf(hw, op, I40E_SUCCESS, msg, len, NULL);
	if (err)
		device_printf(dev, "Unable to send opcode %d to PF, "
		    "error %d, aq status %d\n", op, err, hw->aq.asq_last_status);
	return err;
}
static int ixlv_send_pf_msg ( struct ixlv_sc * sc , enum i40e_virtchnl_ops op , u8 * msg , u16 len ) { struct i40e_hw * hw = & sc -> hw ; device_t dev = sc -> dev ; i40e_status err ; #ifdef IXL_DEBUG int val_err ; val_err = ixl_vc_validate_vf_msg ( sc , op , msg , len ) ; if ( val_err ) device_printf ( dev , " " " \n " , op , len , val_err ) ; #endif err = i40e_aq_send_msg_to_pf ( hw , op , I40E_SUCCESS , msg , len , NULL ) ; if ( err ) device_printf ( dev , " " " \n " , op , err , hw -> aq . asq_last_status ) ; return err ; }
ixlv_send_pf_msg
Send message to PF and print status if failure.
ixlv_send_pf_msg Send message to PF and print status if failure .
/*
	** Pre-validating messages to the PF
	*/