]> git.ipfire.org Git - thirdparty/qemu.git/commit
vhost-user: fix VIRTIO_NET_F_MRG_RXBUF negotiation
authorDamjan Marion <damarion@cisco.com>
Thu, 11 Sep 2014 21:55:48 +0000 (14:55 -0700)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 6 Jan 2015 02:22:59 +0000 (20:22 -0600)
commit09d552b40f79c53a7faa8c85a4ffc2dd52d7b94c
treea0f67d86dbeba1fefb0a22d472bbec789a4f1b1f
parentd754428b9bf9aba4b040aca89e95eb30e5d59faa
vhost-user: fix VIRTIO_NET_F_MRG_RXBUF negotiation

Header length check should happen only if backend is kernel. For user
backend there is no reason to reset this bit.

vhost-user code does not define .has_vnet_hdr_len so
VIRTIO_NET_F_MRG_RXBUF cannot be negotiated even if both sides
support it.

Signed-off-by: Damjan Marion <damarion@cisco.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit d8e80ae37a7acfea416ad9abbe76b453a73d9cc0)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/net/vhost_net.c