From patchwork Thu Jan 16 17:00:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flavio Leitner X-Patchwork-Id: 1224339 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.a=rsa-sha256 header.s=201903 header.b=gW10eCnR; dkim=fail reason="signature verification failed" (2048-bit key) header.d=sysclose.org header.i=@sysclose.org header.a=rsa-sha256 header.s=201903 header.b=aWQkKbY1; 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 47z9Sh4PcFz9sVw for ; Fri, 17 Jan 2020 04:01:08 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B80A187EC5; Thu, 16 Jan 2020 17:01:06 +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 4s6lO6WkMCQl; Thu, 16 Jan 2020 17:01:02 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by hemlock.osuosl.org (Postfix) with ESMTP id 4E04A87F12; Thu, 16 Jan 2020 17:01:02 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 314C2C1D88; Thu, 16 Jan 2020 17:01:02 +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 468E0C077D for ; Thu, 16 Jan 2020 17:01:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 2DB112201C for ; Thu, 16 Jan 2020 17:01:01 +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 GOjDSwJBibQn for ; Thu, 16 Jan 2020 17:00:55 +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 B1A3B21F69 for ; Thu, 16 Jan 2020 17:00:55 +0000 (UTC) Received: by sysclose.org (Postfix, from userid 5001) id B78AE357D; Thu, 16 Jan 2020 17:01:30 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 sysclose.org B78AE357D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sysclose.org; s=201903; t=1579194090; bh=dURw6Sfu2X2T+fqOHgxi+lLJMS9M9s1iOYEz3sfaRls=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gW10eCnR4TM2etSdH1Q8G+pdehOAQL1g/5Arzp6Fp342uNgLVhnky+85+Bw+D0qcp JZ2UJ5l60/FynwuRpvJ584Y7HyyrLXUZS+t01dmG2LZ2dw/KF7aaO+TQu/xexX8hhL tUE6Nk7+iu/J6dUhOzQ1karRNdIrNulLRWbdcfRGVqf0t8nwChbpLu6HP2VVGeQOYY SJ/aF+WgwtZ2Hl7/FKG1IYLDKy3/nB0rkaSu/fo4zlDGPztBfSIZ6GVs8sG/3hIcyP wRdOHOnWLHU3TmCN1qP9xgie39/fXj63m6OC8JZpDNcgdCf4AdFRM1dOPQTqiXwLeI M/sDwXk84nycw== Received: from localhost (unknown [177.183.215.23]) by sysclose.org (Postfix) with ESMTPSA id 24F754121; Thu, 16 Jan 2020 17:01:28 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 sysclose.org 24F754121 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sysclose.org; s=201903; t=1579194089; bh=dURw6Sfu2X2T+fqOHgxi+lLJMS9M9s1iOYEz3sfaRls=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aWQkKbY1r057BCJz2PUADTJgAadcDyNHJUM+HuB+6iQRYzLHlSi/5QIG1NSGRtDCv v0EtCXuHmBFVz+oYPyK9wlXWmo8XRKbTRhLPT6I+XxgEDMgIpeelFZNShrIhE2VWd1 zjb0PbKTT9CqqP5NzP7Vxm2nOcQMtqVLXvZ/Y06fPKI1jud3pygAYaKqVSbuTPfZ0a rK8bZjCptoNHqVEcLBTwF4P4lyQbbx1Vd1FEuv62i6k/wcPAPUP0fNrUf+2MD6LW8M 3nHnFxEVFAqydK0atuHF6paSzZcNkVcXBxoHSjcyHlimcwsgmCRuDG4vlHQcvsPSYz N/CafnMiRaIQQ== From: Flavio Leitner To: dev@openvswitch.org Date: Thu, 16 Jan 2020 14:00:34 -0300 Message-Id: <20200116170035.261803-3-fbl@sysclose.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200116170035.261803-1-fbl@sysclose.org> References: <20200116170035.261803-1-fbl@sysclose.org> MIME-Version: 1.0 Cc: Ilya Maximets , Flavio Leitner , txfh2007 Subject: [ovs-dev] [PATCH v4 2/3] 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: Ilya Maximets --- lib/netdev-dpdk.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 72b67af1a..d1469f6f2 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -1347,6 +1347,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", @@ -4952,6 +4955,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;