vhost: support Explicit Congestion Notification
authorJiayu Hu <jiayu.hu@intel.com>
Wed, 22 Nov 2017 03:19:42 +0000 (11:19 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit57b4eafa1dc071b34ce700703f3b41ff461c72dd
tree086621e9381cc21cde8898fd9f771a9aa0a3cf1d
parentc3ffdba0e88a4220665d2284db5532173578a346
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 <jiayu.hu@intel.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
lib/librte_vhost/vhost.h