From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: Re: [5/6] [VIRTIO] net: Add ethtool ops for SG/GSO Date: Tue, 22 Apr 2008 05:01:46 +1000 Message-ID: <200804220501.46945.rusty@rustcorp.com.au> References: <20080418031257.GA17993@gondor.apana.org.au> <20080418031939.GC18071@gondor.apana.org.au> <20080418032142.GD18071@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080418032142.GD18071@gondor.apana.org.au> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: virtualization@lists.linux-foundation.org Cc: virtualization@lists.osdl.org, Herbert Xu List-Id: virtualization@lists.linuxfoundation.org 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.