From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: [PATCH 0/6] vhost: add vhost-user client mode and reconnect ability Date: Fri, 6 May 2016 23:40:18 -0700 Message-ID: <1462603224-29510-1-git-send-email-yuanhan.liu@linux.intel.com> Cc: huawei.xie@intel.com, Yuanhan Liu To: dev@dpdk.org Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id E05805A32 for ; Sat, 7 May 2016 08:36:17 +0200 (CEST) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Both the vhost-user backend (DPDK here) and frontend (QEMU) could be server, as well as client. DPDK just acts as server so far. This patch set would make it possible to act as both. A new arg (flags) is introduced for API rte_vhost_driver_register(). And the client mode is enabled when RTE_VHOST_USER_CLIENT is given. Note that this implies an API breakage. However, since this release deals with ABI/API refactoring, it should not be an issue. With the DPDK as client, it's easier to implement the "reconnect" ability, which means we could still make vhost-user work after DPDK restarts. --- Yuanhan Liu (6): vhost: rename structs for enabling client mode vhost: add vhost-user client mode vhost: add reconnect ability vhost: workaround stale vring base examples/vhost: add client and reconnect option vhost: add pmd client and reconnect option drivers/net/vhost/rte_eth_vhost.c | 54 +++- examples/vhost/main.c | 23 +- lib/librte_vhost/rte_virtio_net.h | 12 +- lib/librte_vhost/vhost_user/vhost-net-user.c | 355 ++++++++++++++++++--------- lib/librte_vhost/vhost_user/vhost-net-user.h | 6 - lib/librte_vhost/virtio-net.c | 8 + 6 files changed, 313 insertions(+), 145 deletions(-) -- 1.9.0