From: Jiayu Hu Date: Wed, 22 Nov 2017 03:19:42 +0000 (+0800) Subject: vhost: support Explicit Congestion Notification X-Git-Tag: spdx-start~306 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=57b4eafa1dc071b34ce700703f3b41ff461c72dd;p=dpdk.git vhost: support Explicit Congestion Notification In virtio, Explicit Congestion Notification (ECN) includes two parts: guest ECN and host ECN. Guest ECN means the frontend can handle TSO packets which have ECN set, and host ECN means the backend can handle TSO packets which have ECN set. The ECN features are rarely used. However, virtio-net enables them by default, and vhost-net support both. To make live migration from vhost-net to vhost-user possible, this patch announces to support guest and host ECN in vhost-user. Signed-off-by: Jiayu Hu Acked-by: Yuanhan Liu --- diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index f9cc7e6012..b2bf0e833c 100644 --- a/lib/librte_vhost/vhost.h +++ b/lib/librte_vhost/vhost.h @@ -181,11 +181,13 @@ struct vhost_msg { (1ULL << VIRTIO_NET_F_HOST_TSO4) | \ (1ULL << VIRTIO_NET_F_HOST_TSO6) | \ (1ULL << VIRTIO_NET_F_HOST_UFO) | \ + (1ULL << VIRTIO_NET_F_HOST_ECN) | \ (1ULL << VIRTIO_NET_F_CSUM) | \ (1ULL << VIRTIO_NET_F_GUEST_CSUM) | \ (1ULL << VIRTIO_NET_F_GUEST_TSO4) | \ (1ULL << VIRTIO_NET_F_GUEST_TSO6) | \ (1ULL << VIRTIO_NET_F_GUEST_UFO) | \ + (1ULL << VIRTIO_NET_F_GUEST_ECN) | \ (1ULL << VIRTIO_RING_F_INDIRECT_DESC) | \ (1ULL << VIRTIO_RING_F_EVENT_IDX) | \ (1ULL << VIRTIO_NET_F_MTU) | \