From patchwork Tue Dec 31 20:14:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flavio Leitner X-Patchwork-Id: 1216882 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.133; helo=hemlock.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="KiCqO5ff"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=sysclose.org header.i=@sysclose.org header.b="AcnFntQH"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47nQWR2m5fz9sPW for ; Wed, 1 Jan 2020 07:14:43 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D2FE2877CE; Tue, 31 Dec 2019 20:14:41 +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 kXQYl6mJ0uO1; Tue, 31 Dec 2019 20:14:41 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by hemlock.osuosl.org (Postfix) with ESMTP id 1D57E8759E; Tue, 31 Dec 2019 20:14:41 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id F23FFC077D; Tue, 31 Dec 2019 20:14:40 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id F27F9C077D for ; Tue, 31 Dec 2019 20:14:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DF14920496 for ; Tue, 31 Dec 2019 20:14:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 981wKkPORxkD for ; Tue, 31 Dec 2019 20:14:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sysclose.org (smtp.sysclose.org [69.164.214.230]) by silver.osuosl.org (Postfix) with ESMTPS id 31053204A5 for ; Tue, 31 Dec 2019 20:14:39 +0000 (UTC) Received: by sysclose.org (Postfix, from userid 5001) id 7808C35BB; Tue, 31 Dec 2019 20:15:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 sysclose.org 7808C35BB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sysclose.org; s=201903; t=1577823307; bh=43HQWPPgqG/ZJQ6Tupx2KXjBR0m8/td//sxvXTYr+Bg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KiCqO5ffs0wTBMQW+9ypylX5p2rXhJD/DY32siJiEbKveUDsmYuo2VP/wIeDKwJKA XnexU1HNqV+VrYBbpfWO6lSYieHBsbitrsm0+/gO1Kd4/kBjXerOYLsbTZh34EZW03 jAC+jLTfZTfXU+dQQOoRwtuTFtcoLcJI8T5cGY+0Ysc/5WXev5xZ11kVSyP8DGdOWI I3UoJ/PVa4NC9SuwVjwYuO497CLlg4mkmQcrzcODSIRfCar9kKwxG5WDTxocDFgnfk Fpmn5QCZZIOJfjU0F6q/2IM7wsVKcfmmEBmE121y0thITTB5IGkq6hsQxkg6Lipjtf zbiMMTy0HQXQA== Received: from localhost (unknown [191.7.188.174]) by sysclose.org (Postfix) with ESMTPSA id 7F27E35BB; Tue, 31 Dec 2019 20:15:05 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 sysclose.org 7F27E35BB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sysclose.org; s=201903; t=1577823305; bh=43HQWPPgqG/ZJQ6Tupx2KXjBR0m8/td//sxvXTYr+Bg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AcnFntQHfSRh3k7u8+3QYUoUcPOctlLaWp+Rpv8/tbLpsnGnHNkQoDxIETlrbRwm7 DxvMYEDAQ81mQhhboDi4k8WHqasw6cOthxcKdXwbTMZdL9GtUJQgW0V1KhESXS8uIa WnL5eC0a8JiXHVbmNquAglCUvfaz+vLpGEsPA8g9vIWZcEWKA3lnxpbAbCRV5iQ3Pi K5SSdi8OLbSanVx0ZM0YXyfS++x586wkdE29uzDkZvTyhcGpn0i7JGaKO9j5xCjflf y5Z2vvLtqnQc6aiy7ps7LQAcyjL2eHhEMjA5hkivLALYGdYavhInF3+RMfyAOmLJKn sE0ekoTZVeCwA== From: Flavio Leitner To: dev@openvswitch.org Date: Tue, 31 Dec 2019 17:14:09 -0300 Message-Id: <20191231201411.152613-3-fbl@sysclose.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191231201411.152613-1-fbl@sysclose.org> References: <20191231201411.152613-1-fbl@sysclose.org> MIME-Version: 1.0 Cc: Flavio Leitner , Ilya Maximets Subject: [ovs-dev] [PATCH dpdk-latest v2 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 Acked-by: Ian Stokes --- lib/netdev-dpdk.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 2423d26ee..57bff5e58 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -1288,6 +1288,9 @@ netdev_dpdk_vhost_construct(struct netdev *netdev) dev->vhost_id = xasprintf("%s/%s", dpdk_get_vhost_sock_dir(), name); dev->vhost_driver_flags &= ~RTE_VHOST_USER_CLIENT; + + /* There is no support for multi-segments buffers */ + dev->vhost_driver_flags |= RTE_VHOST_USER_LINEARBUF_SUPPORT; err = rte_vhost_driver_register(dev->vhost_id, dev->vhost_driver_flags); if (err) { VLOG_ERR("vhost-user socket device setup failure for socket %s\n", @@ -4355,6 +4358,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;