From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (unknown [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 3F769223 for ; Wed, 22 Nov 2017 04:17:23 +0100 (CET) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Nov 2017 19:17:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,435,1505804400"; d="scan'208";a="179138251" Received: from dpdk15.sh.intel.com ([10.67.111.77]) by fmsmga006.fm.intel.com with ESMTP; 21 Nov 2017 19:17:21 -0800 From: Jiayu Hu To: dev@dpdk.org Cc: yliu@fridaylinux.org, jianfeng.tan@intel.com, Jiayu Hu Date: Wed, 22 Nov 2017 11:19:42 +0800 Message-Id: <1511320782-72744-1-git-send-email-jiayu.hu@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] vhost: support Explicit Congestion Notification X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Nov 2017 03:17:24 -0000 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 --- lib/librte_vhost/vhost.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index 1cc81c1..5d0ed88 100644 --- a/lib/librte_vhost/vhost.h +++ b/lib/librte_vhost/vhost.h @@ -206,10 +206,12 @@ struct vhost_msg { (1ULL << VHOST_USER_F_PROTOCOL_FEATURES) | \ (1ULL << VIRTIO_NET_F_HOST_TSO4) | \ (1ULL << VIRTIO_NET_F_HOST_TSO6) | \ + (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_ECN) | \ (1ULL << VIRTIO_RING_F_INDIRECT_DESC) | \ (1ULL << VIRTIO_NET_F_MTU) | \ (1ULL << VIRTIO_F_IOMMU_PLATFORM)) -- 2.7.4