From patchwork Mon Dec 4 11:15:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Kavanagh X-Patchwork-Id: 844196 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yr2PV4Zr1z9t16 for ; Mon, 4 Dec 2017 22:16:13 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 8A3D1C04; Mon, 4 Dec 2017 11:16:10 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 5C85DBE7 for ; Mon, 4 Dec 2017 11:16:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id E7336189 for ; Mon, 4 Dec 2017 11:16:08 +0000 (UTC) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Dec 2017 03:16:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,359,1508828400"; d="scan'208";a="9300996" Received: from silpixa00399778.ir.intel.com ([10.237.222.206]) by orsmga003.jf.intel.com with ESMTP; 04 Dec 2017 03:16:06 -0800 From: Mark Kavanagh To: dev@openvswitch.org Date: Mon, 4 Dec 2017 11:15:57 +0000 Message-Id: <1512386159-236028-1-git-send-email-mark.b.kavanagh@intel.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: maxime.coquelin@redhat.com, i.maximets@samsung.com Subject: [ovs-dev] [PATCH V4 0/2] DPDK v17.11 Support X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org This patchset adds support for DPDK v17.11: - the first patch introduces minor code updates to accomodate DPDK API changes, and also updates Documentation and travis scripts. - the second patch adds a new global configuration option, vhost-iommu-support; this is required in order to take advantage of the vHost IOMMU feature introduced in DPDK v17.11. --- v4: - rebase to HEAD of master - clarify that IOMMU support applies exclusively to vhost user client ports. - reword caveats regarding modifying vhost-iommu-support at runtime - use smap_get_bool() to parse vhost-iommu-support, instead of process_vhost_flags(). - add stub implementation of dpdk_vhost_iommu_enabled(). - move stdbool.h #include outside of DPDK compiler guards. - remove mention of vhost IOMMU mode from netdev_dpdk_vhost_client_configure() log. v3: - erroneous; disregard. v2: - refactor vHost IOMMU enablement mechanism (use a global config value, instead of the previous per-port approach). Mark Kavanagh (2): netdev-dpdk: DPDK v17.11 upgrade netdev-dpdk: vHost IOMMU support .travis/linux-build.sh | 2 +- Documentation/faq/releases.rst | 1 + Documentation/intro/install/dpdk.rst | 10 ++++----- Documentation/topics/dpdk/ring.rst | 2 +- Documentation/topics/dpdk/vhost-user.rst | 35 ++++++++++++++++++++++++++++---- NEWS | 3 +++ lib/dpdk-stub.c | 6 ++++++ lib/dpdk.c | 12 +++++++++++ lib/dpdk.h | 3 +++ lib/netdev-dpdk.c | 19 +++++++++++------ vswitchd/vswitch.xml | 15 ++++++++++++++ 11 files changed, 91 insertions(+), 17 deletions(-)