From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id 383301B246 for ; Thu, 12 Oct 2017 10:18:57 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id m72so22889923wmc.0 for ; Thu, 12 Oct 2017 01:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=ZGzRqZI0ueG5j8lccKCyIWstIf1dh4ot9Wdxx3spgRs=; b=kcDyqZuHxs6miWfJRjGKuG0ZocxttfCBIIC5YT2aYFLIbQhR2VLYmNK9IRe2dbSNHB XhfNxBvEE2t7lc8q4TvWs9YuU0j8+DnQOyYOKvCadzGvrEG+wF3BYcyHnHUMJiw3uck6 ssvanWWd7ttC7bqt+ZWi9FS+aaTyDrzLyJ+40IukGSO5+BE7+Hp6mFSYX20hOHVGkcf0 gk2AkhJ70KPP//NFA4BpqdKsARSzaV2ewmdJHSHuVjDYiIXQxRDFWzsmkcShw9O6VBRC fqsXBLKQXcn5PEpq7UHPrkG2b2miPvx3uH/EL3kih7cB8q8cwaROsCFR3jlzuGWaaDnI cKRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=ZGzRqZI0ueG5j8lccKCyIWstIf1dh4ot9Wdxx3spgRs=; b=oQQW9RnPaCpG91Jtgue7agKvLEi8QpM03mXxLP87CiF3qtIfMzy1Gge9v4KtlnpNVg TUsvWJS1i5lAr4VJZG6CkS/HkQ04JIpjel7G2VlhSfQrx48lRe5ow9w22s0Nc7W4O357 NyY9tmRkQKg2h4vE19IxB9po+5Bu/38Ytgf/+dTOD6yENuqFwL+cBvpDk57UmqPbOa7f DRmLqZco3OnTs9WXlTlnd6XPMS80rdosNWX4DyU+5fcYryJ4VCz3Pz3+3hEibu+vsW3j UI/tAjRELhgubOV/UsqU+hJbMFXmQqiQxB9WzbJwpVPpTnPp/nT86GmpQsFGvxVT7wBl nC5w== X-Gm-Message-State: AMCzsaXsSr1a9Gt70oCNa4/5+Nxmb5EtLFN58w/SyzqJh1h7MjSccv1F 9IsDVqumqZ/Ka5PX7wsJm1ySWaod X-Google-Smtp-Source: AOwi7QCJHZP38kNSADtUiqP9XF4eWSJG3TItOiyvlOE5m7nr7ThvdPHzNy6/ujGT6gQWqN+w/4+jlw== X-Received: by 10.28.16.85 with SMTP id 82mr1211377wmq.35.1507796336486; Thu, 12 Oct 2017 01:18:56 -0700 (PDT) Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id i76sm39971757wmd.2.2017.10.12.01.18.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Oct 2017 01:18:55 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 12 Oct 2017 10:18:30 +0200 Message-Id: <9d68b81c8073666dcf00ead1fa67516f456ee3bf.1507796085.git.gaetan.rivet@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v1 8/8] bus: remove redundant IOVA mode getter X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Oct 2017 08:18:57 -0000 This configuration element is now accessible through the bus control framework and can be removed from the generic bus structure. Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/include/rte_bus.h | 33 +++++++++------------------------ 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/lib/librte_eal/common/include/rte_bus.h b/lib/librte_eal/common/include/rte_bus.h index bb02d9d..1cae96e 100644 --- a/lib/librte_eal/common/include/rte_bus.h +++ b/lib/librte_eal/common/include/rte_bus.h @@ -227,19 +227,6 @@ typedef rte_bus_ctrl_t (*rte_bus_ctrl_get_t)(enum rte_bus_ctrl_op op, enum rte_bus_ctrl_item item); /** - * Get common iommu class of the all the devices on the bus. The bus may - * check that those devices are attached to iommu driver. - * If no devices are attached to the bus. The bus may return with don't care - * (_DC) value. - * Otherwise, The bus will return appropriate _pa or _va iova mode. - * - * @return - * enum rte_iova_mode value. - */ -typedef enum rte_iova_mode (*rte_bus_get_iommu_class_t)(void); - - -/** * A structure describing a generic bus. */ struct rte_bus { @@ -251,7 +238,6 @@ struct rte_bus { rte_bus_plug_t plug; /**< Probe single device for drivers */ rte_bus_unplug_t unplug; /**< Remove single device from driver */ rte_bus_parse_t parse; /**< Parse a device name */ - rte_bus_get_iommu_class_t get_iommu_class; /**< Get iommu class */ rte_bus_ctrl_get_t ctrl; /**< Get control operators */ }; @@ -309,6 +295,15 @@ int rte_bus_probe_mode_set(const char *busname, enum rte_bus_probe_mode mode); /** + * Get the common iommu class of devices bound on to buses available in the + * system. The default mode is PA. + * + * @return + * enum rte_iova_mode value. + */ +enum rte_iova_mode rte_bus_get_iommu_class(void); + +/** * Dump information of all the buses registered with EAL. * * @param f @@ -368,16 +363,6 @@ struct rte_bus *rte_bus_find_by_device(const struct rte_device *dev); */ struct rte_bus *rte_bus_find_by_name(const char *busname); - -/** - * Get the common iommu class of devices bound on to buses available in the - * system. The default mode is PA. - * - * @return - * enum rte_iova_mode value. - */ -enum rte_iova_mode rte_bus_get_iommu_class(void); - /** * Helper for Bus registration. * The constructor has higher priority than PMD constructors. -- 2.1.4