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 S. Tsirkin <mst@redhat.com>
Thu, 18 Sep 2014 18:51:24 +0000 (21:51 +0300)
commitd8e80ae37a7acfea416ad9abbe76b453a73d9cc0
tree242808ff8401bce41c318c544b72738cd2b0d159
parente43c0b2ea5574efb0bedebf6a7d05916eefeba52
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>
hw/net/vhost_net.c