From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <thomas.monjalon@6wind.com>
Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51])
 by dpdk.org (Postfix) with ESMTP id CA0AFFB20
 for <dev@dpdk.org>; Thu, 19 Jan 2017 05:45:21 +0100 (CET)
Received: by mail-wm0-f51.google.com with SMTP id c206so58677717wme.0
 for <dev@dpdk.org>; Wed, 18 Jan 2017 20:45:21 -0800 (PST)
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=bFQ2sfmUpaZM7lzvmRoaapEzHiUco/tdG9a3i8qBXPo=;
 b=MGxv6EW9TnIMFTzDjKs2bv6Ft9Rkqak6Jfctcwad2j3531to8XqAIZytGvcwedCMXd
 h47XujFVLbiA8KxvjXEY0f0e6wQ+hP3cfAKGvHRI2fqNBlBvutOrCILXKJk0K0D14W65
 Lk5SuHH1OaVCJseuc3RuOpv7FkEYN7w6KhHtcnOu4ICx66ni7LbB1Tjsr9a0H9d1Tdnq
 NTj14bzs1aS9smiaIj54LQAZHID8DuBoB2emBnKWGhVf0hsXSebE0SVvdRJpALUcLc3w
 CyyCA7yc0jGGTnOScWdlBKuPY4N0aCZ1VmmGuxonHfH/O/rGTOeUFnmjangyclWlOve9
 ed2g==
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=bFQ2sfmUpaZM7lzvmRoaapEzHiUco/tdG9a3i8qBXPo=;
 b=QshTY0a5Rnq9QEwmCJPg4qVNYCeFrZkgRcRjH1HqiwShof/6j/LvDEnb/5pC7NhA0H
 1DKDFem507TLKV3BgCz+E5WZ7yzJ+mA2PX0Vy5s+mnH+0N8oB3i+jXfnpxFu8t7q7Qdt
 6dYqCt9PRsLKfsL/XRwCOP2BltybfS2aMhR/qiiKr4LRKYqRBoR4UMlDSicVkyIAyEpC
 WMnu6ay9I8vGFfWqIGBO1OoQZKUwwG/8O7rD244WcDZs9UOfrzVzwddivEyuIKm20cna
 r7a+hu+Z4OIpj3f1bZWHH6FdHH3wsVzx7HZX/9n9DhyBjDKdkqaq7lfPVnUv0UMnJUPP
 3rqg==
X-Gm-Message-State: AIkVDXKiq8X53MGoNUPSHoDSAWWWYo2qfBAlukJowF63k6IAu0PBurgesGDMpcruU8M2OstF
X-Received: by 10.28.37.71 with SMTP id l68mr5522185wml.74.1484801121496;
 Wed, 18 Jan 2017 20:45:21 -0800 (PST)
Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184])
 by smtp.gmail.com with ESMTPSA id t194sm2568586wmd.1.2017.01.18.20.45.20
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
 Wed, 18 Jan 2017 20:45:21 -0800 (PST)
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Shreyansh Jain <shreyansh.jain@nxp.com>
Cc: dev@dpdk.org
Date: Thu, 19 Jan 2017 05:45:04 +0100
Message-Id: <1484801117-779-1-git-send-email-thomas.monjalon@6wind.com>
X-Mailer: git-send-email 2.7.0
In-Reply-To: <1484748329-5418-1-git-send-email-shreyansh.jain@nxp.com>
References: <1484748329-5418-1-git-send-email-shreyansh.jain@nxp.com>
Subject: [dpdk-dev] [PATCH v11 00/13] rte_bus + rte_pci_bus
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jan 2017 04:45:21 -0000

I've continued the work done by Shreyansh for bus abstraction
and PCI implementation.
This change has two benefits:
  - ease future introduction of new bus
  - clean existing buses (only PCI here)
The same kind of work must be done on VDEV in order to move
these implementations as bus drivers.

changes in v11:
- fixes for BSD
- remove useless bus object retrieving
- remove useless bus reference in rte_device
- some rewording and patch reordering

Unfortunately, it is not ready to be integrated in 17.02.
More specifically:
  - the tests need some review/rework
  - the PCI implementation requires more work
  - the documentation must be updated

However there are some new buses waiting for the bus abstraction,
which is simple and good enough.
That's why I have isolated the generic bus model in first patches
and will apply them in 17.02-rc1. It will allow to base new buses
on top of rte_bus.


Shreyansh Jain (13):
  bus: introduce bus abstraction
  bus: add scanning
  bus: add probing
  app/test: check bus registration
  app/test: check bus scan
  app/test: check bus probe
  pci: split match and probe
  pci: remove loop over drivers in device detach
  pci: add bus driver
  app/test: add PCI bus driver
  pci: use bus driver for scan/probe
  pci: use bus driver for attach/detach
  doc: remove deprecation notice for rte_bus

 MAINTAINERS                                     |   1 +
 app/test/Makefile                               |   2 +-
 app/test/autotest_data.py                       |   6 +
 app/test/test.h                                 |   1 +
 app/test/test_bus.c                             | 678 ++++++++++++++++++++++++
 app/test/test_pci.c                             | 164 ++++--
 doc/guides/rel_notes/deprecation.rst            |   5 -
 doc/guides/rel_notes/release_17_02.rst          |   2 +-
 lib/librte_eal/bsdapp/eal/Makefile              |   3 +-
 lib/librte_eal/bsdapp/eal/eal.c                 |  13 +-
 lib/librte_eal/bsdapp/eal/eal_pci.c             |  43 +-
 lib/librte_eal/bsdapp/eal/rte_eal_version.map   |  15 +-
 lib/librte_eal/common/Makefile                  |   2 +-
 lib/librte_eal/common/eal_common_bus.c          | 133 +++++
 lib/librte_eal/common/eal_common_dev.c          |  56 +-
 lib/librte_eal/common/eal_common_pci.c          | 350 +++++++-----
 lib/librte_eal/common/eal_private.h             |  10 -
 lib/librte_eal/common/include/rte_bus.h         | 192 +++++++
 lib/librte_eal/common/include/rte_pci.h         | 142 ++++-
 lib/librte_eal/linuxapp/eal/Makefile            |   3 +-
 lib/librte_eal/linuxapp/eal/eal.c               |  13 +-
 lib/librte_eal/linuxapp/eal/eal_pci.c           |  50 +-
 lib/librte_eal/linuxapp/eal/rte_eal_version.map |  15 +-
 23 files changed, 1600 insertions(+), 299 deletions(-)
 create mode 100644 app/test/test_bus.c
 create mode 100644 lib/librte_eal/common/eal_common_bus.c
 create mode 100644 lib/librte_eal/common/include/rte_bus.h

-- 
2.7.0