Skip to content

rte_bus + rte_pci_bus

Thomas Monjalon dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v11 Latest13 patches 11 repliesIn review

Changes in v11 from the cover letter

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

Patches in v11 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13bus: introduce bus abstractionlib/librte_eal/bsdapp/eal/Makefile lib/librte_eal/bsdapp/eal/rte_eal_version.map lib/librte_eal/common/Makefile +4 more+225 -10 replies
2/13bus: add scanninglib/librte_eal/bsdapp/eal/eal.c lib/librte_eal/bsdapp/eal/rte_eal_version.map lib/librte_eal/common/eal_common_bus.c +3 more+53 -00 replies
3/13bus: add probinglib/librte_eal/bsdapp/eal/eal.c lib/librte_eal/bsdapp/eal/rte_eal_version.map lib/librte_eal/common/eal_common_bus.c +3 more+53 -00 replies
4/13app/test: check bus registrationMAINTAINERS app/test/Makefile app/test/autotest_data.py +5 more+369 -10 replies
5/13app/test: check bus scanapp/test/test_bus.c+174 -00 replies
6/13app/test: check bus probeapp/test/test_bus.c+149 -00 replies
7/13pci: split match and probelib/librte_eal/bsdapp/eal/rte_eal_version.map lib/librte_eal/common/eal_common_pci.c lib/librte_eal/common/include/rte_pci.h +1 more+121 -854 replies
8/13pci: remove loop over drivers in device detachlib/librte_eal/common/eal_common_pci.c+9 -380 replies
9/13pci: add bus driverlib/librte_eal/bsdapp/eal/eal.c lib/librte_eal/bsdapp/eal/eal_pci.c lib/librte_eal/common/eal_common_pci.c +2 more+114 -02 replies
10/13app/test: add PCI bus driverapp/test/test_pci.c+114 -500 replies
11/13pci: use bus driver for scan/probelib/librte_eal/bsdapp/eal/eal.c lib/librte_eal/bsdapp/eal/eal_pci.c lib/librte_eal/bsdapp/eal/rte_eal_version.map +6 more+41 -1020 replies
12/13pci: use bus driver for attach/detachlib/librte_eal/bsdapp/eal/eal_pci.c lib/librte_eal/common/eal_common_dev.c lib/librte_eal/common/eal_common_pci.c +3 more+193 -324 replies
13/13doc: remove deprecation notice for rte_busdoc/guides/rel_notes/deprecation.rst doc/guides/rel_notes/release_17_02.rst lib/librte_eal/bsdapp/eal/Makefile +1 more+3 -81 reply

Reviews trailers per patch

10 of 13 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFerruh YigitJohn McNamaraGaetan RivetStephen Hemminger
SeriesR-b R-b R-b R-b R-b R-b R-b R-b R-b R-b R-b R-b R-b A-b
1/13R-b
2/13R-b
3/13R-b
4/13R-b
5/13
6/13
7/13R-b
8/13
9/13R-b
10/13R-b
11/13R-b
12/13R-b
13/13A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v11 thread

Cover letter [PATCH v11 00/13] rte_bus + rte_pci_bus

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
Signature · 1 line
2.7.0