virtio-net: drop legacy features in virtio 1 mode
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 4 Nov 2016 10:55:36 +0000 (12:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Nov 2016 01:35:46 +0000 (20:35 -0500)
commitf3358507c11999c91abf54744658bccd49b5879c
tree2e4557cd0c74472fa48ada9590bf81b56a99b464
parent5d41ce29e3b91ef305f88d23f72b3359de329cec
virtio-net: drop legacy features in virtio 1 mode

Virtio 1.0 spec says VIRTIO_F_ANY_LAYOUT and VIRTIO_NET_F_GSO are
legacy-only feature bits. Do not negotiate them in virtio 1 mode.  Note
this is a spec violation so we need to backport it to stable/downstream
kernels.

Cc: stable@vger.kernel.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c