FreeBSD/sys/dev/ixl/if_ixlv.c
/*
** Requests a VF reset from the PF.
**
** Requires the VF's Admin Queue to be initialized.
*/
Requests a VF reset from the PF.
Requires the VF's Admin Queue to be initialized.
Requests a VF reset from the PF . Requires the VF ' s Admin Queue to be initialized .
static int
ixlv_reset(struct ixlv_sc *sc)
{
	struct i40e_hw	*hw = &sc->hw;
	device_t	dev = sc->dev;
	int		error = 0;
	if (sc->init_state != IXLV_RESET_PENDING)
		ixlv_request_reset(sc);
	i40e_msec_pause(100);
	error = ixlv_reset_complete(hw);
	if (error) {
		device_printf(dev, "%s: VF reset failed\n",
		    __func__);
		return (error);
	}
	error = i40e_shutdown_adminq(hw);
	if (error) {
		device_printf(dev, "%s: shutdown_adminq failed: %d\n",
		    __func__, error);
		return (error);
	}
	error = i40e_init_adminq(hw);
	if (error) {
		device_printf(dev, "%s: init_adminq failed: %d\n",
		    __func__, error);
		return(error);
	}
	return (0);
}
static int ixlv_reset ( struct ixlv_sc * sc ) { struct i40e_hw * hw = & sc -> hw ; device_t dev = sc -> dev ; int error = 0 ; if ( sc -> init_state != IXLV_RESET_PENDING ) ixlv_request_reset ( sc ) ; i40e_msec_pause ( 100 ) ; error = ixlv_reset_complete ( hw ) ; if ( error ) { device_printf ( dev , " \n " , __func__ ) ; return ( error ) ; } error = i40e_shutdown_adminq ( hw ) ; if ( error ) { device_printf ( dev , " \n " , __func__ , error ) ; return ( error ) ; } error = i40e_init_adminq ( hw ) ; if ( error ) { device_printf ( dev , " \n " , __func__ , error ) ; return ( error ) ; } return ( 0 ) ; }
Requests a VF reset from the PF.
Requests a VF reset from the PF .
/* Ask the PF to reset us if we are initiating */