From patchwork Thu Mar 26 08:03:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sivaprasad Tummala X-Patchwork-Id: 67200 X-Patchwork-Delegate: maxime.coquelin@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E839FA057C; Thu, 26 Mar 2020 09:04:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 21E661C0AC; Thu, 26 Mar 2020 09:04:03 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 5463B1C0AA for ; Thu, 26 Mar 2020 09:04:01 +0100 (CET) IronPort-SDR: sVqPvma9iV/TVaafC6QLB0LaWpj1HBKfHyCOQbedxM8xto8/hD2946gK9To7p3ZQs+O+zMiQ/E +SY2vS7hnPpA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2020 01:03:59 -0700 IronPort-SDR: G1pmpZFOIADs++wbowlX/kE+VhTrsnX/+UxZhMHlWe7aXMJyzAKtG14nYVmo8h91Gm5VMgux1v RdFGgCxefO4Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,307,1580803200"; d="scan'208";a="420606188" Received: from silpixa00390853.ir.intel.com (HELO silpixa00390853.ger.corp.intel.com) ([10.237.222.75]) by orsmga005.jf.intel.com with ESMTP; 26 Mar 2020 01:03:58 -0700 From: Sivaprasad Tummala To: Maxime Coquelin , Zhihong Wang , Xiaolong Ye Cc: dev@dpdk.org Date: Thu, 26 Mar 2020 08:03:48 +0000 Message-Id: <20200326080349.4181-1-Sivaprasad.Tummala@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH v1] vhost: dequeue zero copy with linear buffers 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" Removed the linear buffer and zero_copy compatibility restriction. Applications that requires packets contained in a single buffer will enable linear buffer in vhost library. This restriction is not allowing zero_copy mode for such cases. Signed-off-by: Sivaprasad Tummala --- lib/librte_vhost/socket.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/librte_vhost/socket.c b/lib/librte_vhost/socket.c index 7c8012179..e1afc290e 100644 --- a/lib/librte_vhost/socket.c +++ b/lib/librte_vhost/socket.c @@ -920,12 +920,6 @@ rte_vhost_driver_register(const char *path, uint64_t flags) ret = -1; goto out_mutex; } - if (vsocket->linearbuf) { - VHOST_LOG_CONFIG(ERR, - "error: zero copy is incompatible with linear buffers\n"); - ret = -1; - goto out_mutex; - } vsocket->supported_features &= ~(1ULL << VIRTIO_F_IN_ORDER); vsocket->features &= ~(1ULL << VIRTIO_F_IN_ORDER);