[5/6] [VIRTIO] net: Add ethtool ops for SG/GSO

Rusty Russell rusty at rustcorp.com.au
Mon Apr 21 12:01:46 PDT 2008


On Friday 18 April 2008 13:21:42 Herbert Xu wrote:
> +static int virtnet_change_mtu(struct net_device *dev, int mtu)
> +{
> +	int max = 65535 - ETH_HLEN;
> +
> +	if (mtu > max)
> +		return -EINVAL;
> +	dev->mtu = mtu;
> +	return 0;
> +}

Hi Herbert!

    I removed this part; useful for testing, but we need a feature bit for MTU 
size in general.  And to change it on the fly either requires a reset & 
re-init, or some protocol (and feature bit!) for renegotiating MTU.

Cheers,
Rusty.


More information about the Virtualization mailing list