FreeBSD/sys/dev/ixl/ixlvc.c
/*
** ixlv_send_vf_config_msg
**
** Send VF configuration request admin queue message to the PF. The reply
** is not checked in this function. Returns 0 if the message was
** successfully sent, or one of the I40E_ADMIN_QUEUE_ERROR_ statuses if not.
*/
ixlv_send_vf_config_msg
Send VF configuration request admin queue message to the PF. The reply
is not checked in this function. Returns 0 if the message was
successfully sent, or one of the I40E_ADMIN_QUEUE_ERROR_ statuses if not.
ixlv_send_vf_config_msg Send VF configuration request admin queue message to the PF . The reply is not checked in this function . Returns 0 if the message was successfully sent or one of the I40E_ADMIN_QUEUE_ERROR_ statuses if not .
int
ixlv_send_vf_config_msg(struct ixlv_sc *sc)
{
	u32	caps;
	caps = I40E_VIRTCHNL_VF_OFFLOAD_L2 |
	    I40E_VIRTCHNL_VF_OFFLOAD_RSS_PF |
	    I40E_VIRTCHNL_VF_OFFLOAD_VLAN;
	if (sc->pf_version == I40E_VIRTCHNL_VERSION_MINOR_NO_VF_CAPS)
		return ixlv_send_pf_msg(sc, I40E_VIRTCHNL_OP_GET_VF_RESOURCES,
				  NULL, 0);
	else
		return ixlv_send_pf_msg(sc, I40E_VIRTCHNL_OP_GET_VF_RESOURCES,
				  (u8 *)&caps, sizeof(caps));
}
int ixlv_send_vf_config_msg ( struct ixlv_sc * sc ) { u32 caps ; caps = I40E_VIRTCHNL_VF_OFFLOAD_L2 | I40E_VIRTCHNL_VF_OFFLOAD_RSS_PF | I40E_VIRTCHNL_VF_OFFLOAD_VLAN ; if ( sc -> pf_version == I40E_VIRTCHNL_VERSION_MINOR_NO_VF_CAPS ) return ixlv_send_pf_msg ( sc , I40E_VIRTCHNL_OP_GET_VF_RESOURCES , NULL , 0 ) ; else return ixlv_send_pf_msg ( sc , I40E_VIRTCHNL_OP_GET_VF_RESOURCES , ( u8 * ) & caps , sizeof ( caps ) ) ; }
ixlv_send_vf_config_msg
Send VF configuration request admin queue message to the PF.
ixlv_send_vf_config_msg Send VF configuration request admin queue message to the PF .