Re: [Qemu-devel] [RFC v2 3/3] virtio-net: Add MTU feature support

2016-11-22 Thread Maxime Coquelin
On 11/22/2016 03:18 PM, Michael S. Tsirkin wrote: On Tue, Nov 22, 2016 at 01:11:50PM +0100, Maxime Coquelin wrote: On 11/21/2016 05:48 PM, Michael S. Tsirkin wrote: @@ -1695,6 +1706,7 @@ static void virtio_net_set_config_size(VirtIONet *n, uint64_t host_features) { int i, config_size

Re: [Qemu-devel] [RFC v2 3/3] virtio-net: Add MTU feature support

2016-11-22 Thread Michael S. Tsirkin
On Tue, Nov 22, 2016 at 01:11:50PM +0100, Maxime Coquelin wrote: > > > On 11/21/2016 05:48 PM, Michael S. Tsirkin wrote: > > > > > > > > @@ -1695,6 +1706,7 @@ static void > > > > > > > > virtio_net_set_config_size(VirtIONet *n, uint64_t host_features) > > > > > > > > { > > > > > > > > int

Re: [Qemu-devel] [RFC v2 3/3] virtio-net: Add MTU feature support

2016-11-22 Thread Maxime Coquelin
On 11/21/2016 05:48 PM, Michael S. Tsirkin wrote: > > > @@ -1695,6 +1706,7 @@ static void virtio_net_set_config_size(VirtIONet *n, uint64_t host_features) > > > { > > > int i, config_size = 0; > > > virtio_add_feature(&host_features, VIRTIO_NET_F_MAC); > > > +virtio_add_feature(

Re: [Qemu-devel] [RFC v2 3/3] virtio-net: Add MTU feature support

2016-11-21 Thread Michael S. Tsirkin
On Mon, Nov 21, 2016 at 01:34:32PM +0100, Maxime Coquelin wrote: > > > On 11/17/2016 11:38 PM, Michael S. Tsirkin wrote: > > On Thu, Nov 17, 2016 at 10:58:07PM +0100, Maxime Coquelin wrote: > > > If negotiated, virtio-net gets the advised MTU from vhost-net, > > > and provides it to the guest thr

Re: [Qemu-devel] [RFC v2 3/3] virtio-net: Add MTU feature support

2016-11-21 Thread Maxime Coquelin
On 11/17/2016 11:38 PM, Michael S. Tsirkin wrote: On Thu, Nov 17, 2016 at 10:58:07PM +0100, Maxime Coquelin wrote: If negotiated, virtio-net gets the advised MTU from vhost-net, and provides it to the guest through a new virtio_net_config entry. Cc: Michael S. Tsirkin Cc: Aaron Conole ---

Re: [Qemu-devel] [RFC v2 3/3] virtio-net: Add MTU feature support

2016-11-17 Thread Michael S. Tsirkin
On Thu, Nov 17, 2016 at 10:58:07PM +0100, Maxime Coquelin wrote: > If negotiated, virtio-net gets the advised MTU from vhost-net, > and provides it to the guest through a new virtio_net_config > entry. > > Cc: Michael S. Tsirkin > Cc: Aaron Conole Signed-off-by: Maxime Coquelin > --- > hw/net/

[Qemu-devel] [RFC v2 3/3] virtio-net: Add MTU feature support

2016-11-17 Thread Maxime Coquelin
If negotiated, virtio-net gets the advised MTU from vhost-net, and provides it to the guest through a new virtio_net_config entry. Cc: Michael S. Tsirkin Cc: Aaron Conole --- hw/net/virtio-net.c| 14 ++ include/hw/virtio/virtio-net.h | 1 + 2 files changed, 15 insertion