vhost-user: Add MTU protocol feature and op
commitc5f048d8fb69ae9b52a02ff4435b403b2ba19db7
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Sat, 10 Dec 2016 15:30:36 +0000 (10 16:30 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 10 Jan 2017 05:02:53 +0000 (10 07:02 +0200)
treed9bcd743ef6dd8fbe73b91d1e7b2b68de91fe531
parent283e2c2adcb80148c7f67d71d52134af80d2fbae
vhost-user: Add MTU protocol feature and op

This patch implements VHOST_USER_PROTOCOL_F_NET_MTU
protocol feature and VHOST_USER_NET_SET_MTU request so
that the backend gets notified of the user defined host
MTU.

If backend supports VHOST_USER_PROTOCOL_F_REPLY_ACK,
QEMU assumes MTU is valid if success is returned.

Vhost-net driver sends this request through a new
vhost_net_set_mtu vhost_ops entry.

Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Aaron Conole <aconole@redhat.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
docs/specs/vhost-user.txt
hw/virtio/vhost-user.c
include/hw/virtio/vhost-backend.h