From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gaetan.rivet@6wind.com>
Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54])
 by dpdk.org (Postfix) with ESMTP id 819401BEF3
 for <dev@dpdk.org>; Thu,  5 Jul 2018 13:49:11 +0200 (CEST)
Received: by mail-wm0-f54.google.com with SMTP id p11-v6so10304617wmc.4
 for <dev@dpdk.org>; Thu, 05 Jul 2018 04:49:11 -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;
 bh=eMfldAQipU4EMMeoXzQ37imMfcBAGhww6g5+cEKj1Fg=;
 b=pZBXOTkB24gh2YjHsGtffARV9SJNm5gsmdLqP57hIeXD8vx0iTJCiU5fdapg1BBZu6
 oly6jXGG15YyNXu4mkwk3pNw26RNJgCIDt5ekx6vP6lw+X27sHaRb72/CaXP92Ow/uMY
 Z4iiSMXt2hpAXS5junuH7W1k+epPS8lUf2T9ntX37Bxt8+rx4cM1mb/iZCuDZuX5AUUa
 bh6Js8uD7rclO1H1Nc+7/bC0zuMIj2COkA/2shAgt0mPuwG1OVk9w1Q+ciK8Oe4KX972
 KhPjX5xRbmmJZ3pT0L35PxhXhDj/zu+9F3nFX4T6QjlsKzkHw7dgZ4jOVV38Ua6ompLI
 zzRg==
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;
 bh=eMfldAQipU4EMMeoXzQ37imMfcBAGhww6g5+cEKj1Fg=;
 b=VIgrENezCDXAmy4LhE4TMDVz6qanAX9Mvvj6kGUq8bBjvW6U5v22xE1v5VyJ6vPpXY
 08iDq3cXUS87Gt/BW5KJGCVsypRPU/6Wp8c97FMpkAKEywzUr+ZLFDZ730CaFXieEDOg
 uZOBRHjCOdjhmhVpifWVpEJsPZhDV3ArmmiiP5077phFMI+tzLeliYtGq9LfKilFQXGZ
 ppx60hc1W2g+skoozObVmHU6rKdHTcKjowiTQ+6SeNB5DFBBdehYiSIFiC04aLtT2lO5
 JVAUeImdlii5PToQNQuUq0tHRrjDuMretNWtnW8Ow/eCsCTfz0R67Yc5qKnbM6kOxPlh
 PX4w==
X-Gm-Message-State: APt69E2LqE9gwnKsuTfzFjSSlny4WfA4yC2nZdx5+/I7BLb7ipFIUzY0
 9M664Axgesv92BE9WfK3iZdxOJ19
X-Google-Smtp-Source: AAOMgpcHNfd3ccAf8S2JEpek7g5+Uc85Dx37+ccoGWATXCFTuJ5OdsAJgWu/IEBBDcnR+zNCMpShVw==
X-Received: by 2002:a1c:415:: with SMTP id 21-v6mr4207387wme.128.1530791350897; 
 Thu, 05 Jul 2018 04:49:10 -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 o42-v6sm15809183wrc.50.2018.07.05.04.49.09
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 05 Jul 2018 04:49:10 -0700 (PDT)
From: Gaetan Rivet <gaetan.rivet@6wind.com>
To: dev@dpdk.org
Cc: Gaetan Rivet <gaetan.rivet@6wind.com>
Date: Thu,  5 Jul 2018 13:48:18 +0200
Message-Id: <a6b4434c542ba9deeb4dc5dd03949a420609ebdd.1530791217.git.gaetan.rivet@6wind.com>
X-Mailer: git-send-email 2.18.0
In-Reply-To: <cover.1530791217.git.gaetan.rivet@6wind.com>
References: <cover.1530791217.git.gaetan.rivet@6wind.com>
Subject: [dpdk-dev] [PATCH v10 11/27] eal/bus: add device iteration
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Jul 2018 11:49:11 -0000

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
---
 lib/librte_eal/common/include/rte_bus.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_eal/common/include/rte_bus.h b/lib/librte_eal/common/include/rte_bus.h
index eb9eded4e..747baf140 100644
--- a/lib/librte_eal/common/include/rte_bus.h
+++ b/lib/librte_eal/common/include/rte_bus.h
@@ -211,6 +211,7 @@ struct rte_bus {
 	rte_bus_parse_t parse;       /**< Parse a device name */
 	struct rte_bus_conf conf;    /**< Bus configuration */
 	rte_bus_get_iommu_class_t get_iommu_class; /**< Get iommu class */
+	rte_dev_iterate_t dev_iterate; /**< Device iterator. */
 };
 
 /**
-- 
2.18.0