virtio_net: don't require ANY_LAYOUT with VERSION_1
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 15 Jul 2015 12:26:19 +0000 (15:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 17:26:23 +0000 (19:26 +0200)
commit51677b722338da3671ef19846616cf3811253760
tree46746b7fb4f238f655bf3c84a1f6b504b82f605c
parentb265c3003196a76f9b88d54e098e982e7c55647c
virtio_net: don't require ANY_LAYOUT with VERSION_1

[ Upstream commit 75993300d008f418ee2569a632185fc1d7d50674 ]

ANY_LAYOUT is a compatibility feature. It's implied
for VERSION_1 devices, and non-transitional devices
might not offer it. Change code to behave accordingly.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/virtio_net.c