]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9997c23cdb023703f511064d3e25767fd6772ea5
tree2e4557cd0c74472fa48ada9590bf81b56a99b464
parent8a7d03da112c83e075506e0f6285c71dd01cd510
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