From patchwork Mon Dec 2 13:44:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flavio Leitner X-Patchwork-Id: 1203163 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=sysclose.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=sysclose.org header.i=@sysclose.org header.b="YEBrXDkt"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=sysclose.org header.i=@sysclose.org header.b="StGONLN6"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47RRFH0HP1z9sPc for ; Tue, 3 Dec 2019 00:45:06 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1B6EF83604; Mon, 2 Dec 2019 13:45:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OBdkQKEI2CCK; Mon, 2 Dec 2019 13:45:03 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id E54D7834A3; Mon, 2 Dec 2019 13:45:03 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id DC858C1798; Mon, 2 Dec 2019 13:45:03 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 71D9CC087F for ; Mon, 2 Dec 2019 13:45:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 680CA88246 for ; Mon, 2 Dec 2019 13:45:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7VwRM2n9QSd9 for ; Mon, 2 Dec 2019 13:45:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sysclose.org (smtp.sysclose.org [69.164.214.230]) by hemlock.osuosl.org (Postfix) with ESMTPS id BFE2988216 for ; Mon, 2 Dec 2019 13:45:01 +0000 (UTC) Received: by sysclose.org (Postfix, from userid 5001) id B00043052; Mon, 2 Dec 2019 13:45:17 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 sysclose.org B00043052 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sysclose.org; s=201903; t=1575294317; bh=oozOH/PZa16K9OU5GaaKGpcj35kzejgU9X6KcrRiQTY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YEBrXDktK/ntQG/BYnNZcSHVXbLp8c8W4PAyG2pDOvVLa0rCsqSN97t1T7FgH01xV axpfXSdOX5ff/MpI4joF16aJj1kkNlYtQeX44Xhskjw+RLIXT80Es8ezJuNhKEqs+N DvZz3uBJKRmIJvdJHhZWboLtcyjuaaAP0reEevlQSj5l/1UnPRgpWdkJ2NHhZnz3u4 hkiPH/Lds3zyn4L14rcvoxAYZ/in5Mb3ZcPl7NUkySFVuAnjtuX6ZtIfjwyPan/P7l 3DZsGC0DhBGuyLLaJoQK6+n+OuIcfRSm4xZo59wZFxCuiSJRzhlVfLS7IInpyb4bdH xkS0NBUjB9eYw== Received: from localhost (unknown [45.71.104.69]) by sysclose.org (Postfix) with ESMTPSA id 566CE181; Mon, 2 Dec 2019 13:45:16 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 sysclose.org 566CE181 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sysclose.org; s=201903; t=1575294316; bh=oozOH/PZa16K9OU5GaaKGpcj35kzejgU9X6KcrRiQTY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=StGONLN6ugEfAaCWynuRIuxAZEiCZpOANpRZlJ4tyFpZ3HfGb3/DA8sZc+mWZpa7j ruwkH3GeeUKCkg/iaI+c/LwNA4i+JadulJfkmoLt0Il37HlFkwqEf6v4Ig/Hml/b2p Qm+RP7SCEWq7QD7YClBfub2k3qd/eMgZj49RfeAF6FRJwFhgJCTyCX6YRIG42To8TS W0I/S20rhJFP1UL8PrqzxtHP2eZogPxpY3QboWnebt3uoKTRxD4tkmppH93NREI70+ A7ai8qWYAOXiDsCG5NF+216Ap0Ei4FtRS7hSavjqSniT/hkQxOS+wfWfk6zCiwLlBN gka1ZYEEhNv7w== From: Flavio Leitner To: dev@openvswitch.org Date: Mon, 2 Dec 2019 10:44:24 -0300 Message-Id: <20191202134426.2220333-3-fbl@sysclose.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191202134426.2220333-1-fbl@sysclose.org> References: <20191202134426.2220333-1-fbl@sysclose.org> MIME-Version: 1.0 Cc: Flavio Leitner Subject: [ovs-dev] [PATCH 2/4] vhost: Disable multi-segmented buffers X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" There is no support for multi-segmented buffers, so flag that to vhost library. Signed-off-by: Flavio Leitner --- lib/netdev-dpdk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 2423d26ee..cd035f76e 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -4355,6 +4355,9 @@ netdev_dpdk_vhost_client_reconfigure(struct netdev *netdev) /* Register client-mode device. */ vhost_flags |= RTE_VHOST_USER_CLIENT; + /* There is no support for multi-segments buffers */ + vhost_flags |= RTE_VHOST_USER_LINEARBUF_SUPPORT; + /* Enable IOMMU support, if explicitly requested. */ if (dpdk_vhost_iommu_enabled()) { vhost_flags |= RTE_VHOST_USER_IOMMU_SUPPORT;