From patchwork Thu Jan 9 14:44:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flavio Leitner X-Patchwork-Id: 1220422 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.138; helo=whitealder.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=d4TA58j2; 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=xgvsRKjz; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47tpnY58kmz9sNx for ; Fri, 10 Jan 2020 01:45:37 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 936CF86C7B; Thu, 9 Jan 2020 14:45:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ol8xl2JSBrCF; Thu, 9 Jan 2020 14:45:33 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id C886986BE0; Thu, 9 Jan 2020 14:45:33 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 9C0A0C1D87; Thu, 9 Jan 2020 14:45:33 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 7861FC0881 for ; Thu, 9 Jan 2020 14:45:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7275786448 for ; Thu, 9 Jan 2020 14:45:32 +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 emgb0X69B1RE for ; Thu, 9 Jan 2020 14:45:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sysclose.org (smtp.sysclose.org [69.164.214.230]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 59E1C8659E for ; Thu, 9 Jan 2020 14:45:31 +0000 (UTC) Received: by sysclose.org (Postfix, from userid 5001) id 9F0B24106; Thu, 9 Jan 2020 14:46:03 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 sysclose.org 9F0B24106 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sysclose.org; s=201903; t=1578581163; bh=ezF7Yje8WbIpETi7DW4oGBK6QWQi2RW5bYJnn7h6WdI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d4TA58j2H3V48rXAaOxo2GEP63UtHEw5+f63Nw94N+N+fGNN7Lzqm56xIttP65Orj gKnb1eixONJjGotf/730zQCMzpFqEDLzd7oEYpXCdh/doMDnmngaczQmTojC7Jdry4 4V+pnG0shCNqjmCfubqxQkdvQxBAIkq9n00qh7to0Q9PUHNJCweXtCtit+dFJf6KpR RCDYMRcpqy1+8RNDYSD23ED+3U5WZuN0Wq23ZT5pZ+pDof6LXbDRJZbDKjMDF6ngfA JulCNwNJ1gzzR75Rx4SIxJqv9CWtQqnij5op3C5JiQLFx4UnOXIEoLlqea/sFEfeB8 rid7m8i2UejOQ== Received: from localhost (unknown [191.7.191.8]) by sysclose.org (Postfix) with ESMTPSA id BFEE44129; Thu, 9 Jan 2020 14:46:00 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 sysclose.org BFEE44129 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sysclose.org; s=201903; t=1578581161; bh=ezF7Yje8WbIpETi7DW4oGBK6QWQi2RW5bYJnn7h6WdI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xgvsRKjz5fK7uumiXfhK/EaAPJ5ulIRx4THKGMJ3Jf2KJfWAa40gIafBFfnLmENJ0 rJ1NI6HQH6n+ZJeTaciE2kQdEt4zflzCXRcxRbhahMpxkjzGFX7S9zlziP9y/mglYk 57q+NP5Iu3mpL/pw36sFwo1wkqUYP123uoOqk60XPoz/0e/Rrjr+2the6WgdRcd8OL HTI541pv5m7wC6GmFoG6EDnJnbuoJE4ul52NBfu+Dkt+apH/2WUlsqDIQ0AWW9OOpj NxoarYdb1qbQrRV4V61tEVkynY+6LscDLwLqWk4mef0m7ntdwVb9xtncXn3RinOuEb 1rceOvLY6hyvQ== From: Flavio Leitner To: dev@openvswitch.org Date: Thu, 9 Jan 2020 11:44:56 -0300 Message-Id: <20200109144457.2489481-3-fbl@sysclose.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200109144457.2489481-1-fbl@sysclose.org> References: <20200109144457.2489481-1-fbl@sysclose.org> MIME-Version: 1.0 Cc: Flavio Leitner , Ilya Maximets Subject: [ovs-dev] [PATCH v3 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 --- lib/netdev-dpdk.c | 6 ++++++ 1 file changed, 6 insertions(+) Changelog: - v3 * added period at the end of comments. diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 8198a0b7d..5e09786ac 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -1297,6 +1297,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", @@ -4423,6 +4426,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;