From patchwork Thu Feb 28 15:31:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 50642 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 37FD7374E; Thu, 28 Feb 2019 16:31:44 +0100 (CET) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id D12D7374C for ; Thu, 28 Feb 2019 16:31:42 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1CFF7F8792; Thu, 28 Feb 2019 15:31:42 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-64.ams2.redhat.com [10.36.112.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id D7EFF5C1B5; Thu, 28 Feb 2019 15:31:36 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, changpeng.liu@intel.com, tiwei.bie@intel.com, i.maximets@samsung.com Cc: Maxime Coquelin Date: Thu, 28 Feb 2019 16:31:32 +0100 Message-Id: <20190228153134.31865-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 28 Feb 2019 15:31:42 +0000 (UTC) Subject: [dpdk-dev] [RFC v2 0/2] vhost: Support external backend only vhost-user requests 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The goals of this series is to provide more flexibility to external backends to implement their specific vhost-user request handling without having to patch vhost-user library. First patch implements a new API for external backend to advertize its specific protocol features to vhost-user master. Second patch ensures a request not handled by the vhost-user library but by the external backend only will not be treated as an error or make the vhost lib to crash. Changes in RFC v2: ================== - Fix build & git message - Add new enum for not handled messages & remove skip_master (Ilya) Maxime Coquelin (2): vhost: add API to set protocol features flags vhost: support requests only handled by external backend lib/librte_vhost/rte_vhost.h | 30 +++++++++-- lib/librte_vhost/rte_vhost_version.map | 1 + lib/librte_vhost/socket.c | 14 +++++ lib/librte_vhost/vhost_user.c | 75 +++++++++++++++++--------- 4 files changed, 89 insertions(+), 31 deletions(-)