FreeBSD/sys/dev/vxge/vxge.c
/*
 * vxge_change_mtu
 * Change interface MTU to a requested valid size
 */
vxge_change_mtu
Change interface MTU to a requested valid size
vxge_change_mtu Change interface MTU to a requested valid size
int
vxge_change_mtu(vxge_dev_t *vdev, unsigned long new_mtu)
{
	int err = EINVAL;
	if ((new_mtu < VXGE_HAL_MIN_MTU) || (new_mtu > VXGE_HAL_MAX_MTU))
		goto _exit0;
	(vdev->ifp)->if_mtu = new_mtu;
	device_printf(vdev->ndev, "MTU changed to %u\n", (vdev->ifp)->if_mtu);
	if (vdev->is_initialized) {
		if_down(vdev->ifp);
		vxge_reset(vdev);
		if_up(vdev->ifp);
	}
	err = 0;
_exit0:
	return (err);
}
int vxge_change_mtu ( vxge_dev_t * vdev , unsigned long new_mtu ) { int err = EINVAL ; if ( ( new_mtu < VXGE_HAL_MIN_MTU ) || ( new_mtu > VXGE_HAL_MAX_MTU ) ) goto _exit0 ; ( vdev -> ifp ) -> if_mtu = new_mtu ; device_printf ( vdev -> ndev , " \n " , ( vdev -> ifp ) -> if_mtu ) ; if ( vdev -> is_initialized ) { if_down ( vdev -> ifp ) ; vxge_reset ( vdev ) ; if_up ( vdev -> ifp ) ; } err = 0 ; _exit0 : return ( err ) ; }
vxge_change_mtu
 Change interface MTU to a requested valid size
vxge_change_mtu Change interface MTU to a requested valid size