Re: [net-next PATCH v4 1/6] net: virtio dynamically disable/enable LRO

2016-12-04 Thread John Fastabend
On 16-12-03 09:36 PM, Michael S. Tsirkin wrote: > On Fri, Dec 02, 2016 at 12:49:45PM -0800, John Fastabend wrote: >> This adds support for dynamically setting the LRO feature flag. The >> message to control guest features in the backend uses the >> CTRL_GUEST_OFFLOADS msg type. >> >>

Re: [net-next PATCH v4 1/6] net: virtio dynamically disable/enable LRO

2016-12-03 Thread Michael S. Tsirkin
On Fri, Dec 02, 2016 at 12:49:45PM -0800, John Fastabend wrote: > This adds support for dynamically setting the LRO feature flag. The > message to control guest features in the backend uses the > CTRL_GUEST_OFFLOADS msg type. > > Signed-off-by: John Fastabend > --- >

Re: [net-next PATCH v4 1/6] net: virtio dynamically disable/enable LRO

2016-12-03 Thread David Miller
From: John Fastabend Date: Fri, 02 Dec 2016 12:49:45 -0800 > + if (virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_GUEST_OFFLOADS)) { > + sg_init_one(, , sizeof(uint64_t)); > + if (!virtnet_send_command(vi, > +

[net-next PATCH v4 1/6] net: virtio dynamically disable/enable LRO

2016-12-02 Thread John Fastabend
This adds support for dynamically setting the LRO feature flag. The message to control guest features in the backend uses the CTRL_GUEST_OFFLOADS msg type. Signed-off-by: John Fastabend --- drivers/net/virtio_net.c | 45 -