Skip to content

Cleanup PCI(e) drivers

David Marchand dpdk-dev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest15 patches 12 repliesIn review
  2. v215 patches 18 repliesSuperseded
  3. v114 patches 21 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15drivers: remove duplicated PCI master controldrivers/bus/pci/linux/pci_uio.c drivers/bus/pci/linux/pci_vfio.c drivers/net/hns3/hns3_ethdev_vf.c +2 more+6 -1150 replies
2/15bus/pci: add const to some experimental APIdrivers/bus/pci/pci_common.c drivers/bus/pci/rte_bus_pci.h+4 -40 replies
3/15bus/pci: rework MSIX discovery with VFIOdrivers/bus/pci/linux/pci_vfio.c+10 -170 replies
4/15bus/pci: find PCI capabilitydrivers/bus/pci/linux/pci_vfio.c drivers/bus/pci/pci_common.c drivers/bus/pci/rte_bus_pci.h +10 more+223 -3931 reply
5/15pci: define some capability constantsdrivers/bus/pci/linux/pci_vfio.c drivers/crypto/virtio/virtio_pci.c drivers/event/dlb2/pf/dlb2_main.c +9 more+29 -451 reply
6/15pci: define some MSIX constantsdrivers/bus/pci/linux/pci_init.h drivers/bus/pci/linux/pci_vfio.c drivers/crypto/virtio/virtio_pci.c +8 more+31 -560 replies
7/15pci: define some command constantsdrivers/bus/pci/linux/pci_vfio.c drivers/event/dlb2/pf/dlb2_main.c lib/pci/rte_pci.h+11 -110 replies
8/15pci: define some BAR constantsdrivers/bus/pci/linux/pci_vfio.c lib/pci/rte_pci.h+7 -40 replies
9/15pci: define some PM constantsdrivers/net/bnx2x/bnx2x.c drivers/net/bnx2x/bnx2x.h lib/pci/rte_pci.h+15 -130 replies
10/15pci: define some PCIe constantsdrivers/event/dlb2/pf/dlb2_main.c drivers/net/bnx2x/bnx2x.c drivers/net/bnx2x/bnx2x.h +1 more+41 -711 reply
11/15pci: define some extended capability constantsdrivers/event/dlb2/pf/dlb2_main.c lib/pci/rte_pci.h+6 -71 reply
12/15pci: define some ACS constantsdrivers/event/dlb2/pf/dlb2_main.c lib/pci/rte_pci.h+17 -152 replies
13/15pci: define some PRI constantsdrivers/event/dlb2/pf/dlb2_main.c lib/pci/rte_pci.h+9 -72 replies
14/15pci: define some AER constantsdrivers/event/dlb2/pf/dlb2_main.c lib/pci/rte_pci.h+8 -72 replies
15/15devtools: forbid inclusion of Linux header for PCIdevtools/checkpatches.sh+8 -00 replies

Reviews trailers per patch

All 15 patches have a Reviewed-by or Acked-by.

PatchBruce RichardsonChenbo XiaStephen HemmingerAbdullah Sevincer
SeriesSeries-Acked-by
1/15A-b R-b
2/15A-b R-b
3/15R-b
4/15A-b R-b
5/15A-b R-b A-b
6/15A-b R-b
7/15A-b R-b
8/15A-b R-b
9/15A-b R-b
10/15A-b R-b A-b
11/15A-b R-b A-b
12/15A-b R-b A-b
13/15A-b R-b A-b
14/15A-b R-b A-b
15/15A-b R-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 v3 thread

Cover letter [PATCH v3 00/15] Cleanup PCI(e) drivers

Rather than rely on Linux headers to find some PCI(e) standard constants or reinvent the same PCI capability helper, this series complements the pci library and the pci bus driver.
PCI drivers can then use OS agnostic macros and helpers.

Signature · 50 lines
David Marchand

Changes since v2:
- fixed vendor capability handling in virtio drivers (thanks Chenbo!),

Changes since v1:
- fix VFIO-backed drivers broken by v1 patch 3,
- enhanced rte_pci.h defines organisation,

David Marchand (15):
  drivers: remove duplicated PCI master control
  bus/pci: add const to some experimental API
  bus/pci: rework MSIX discovery with VFIO
  bus/pci: find PCI capability
  pci: define some capability constants
  pci: define some MSIX constants
  pci: define some command constants
  pci: define some BAR constants
  pci: define some PM constants
  pci: define some PCIe constants
  pci: define some extended capability constants
  pci: define some ACS constants
  pci: define some PRI constants
  pci: define some AER constants
  devtools: forbid inclusion of Linux header for PCI

 devtools/checkpatches.sh            |   8 ++
 drivers/bus/pci/linux/pci_init.h    |  18 ----
 drivers/bus/pci/linux/pci_uio.c     |  32 +-----
 drivers/bus/pci/linux/pci_vfio.c    | 148 ++++++--------------------
 drivers/bus/pci/pci_common.c        |  58 ++++++++++-
 drivers/bus/pci/rte_bus_pci.h       |  57 +++++++++-
 drivers/bus/pci/version.map         |   5 +
 drivers/crypto/virtio/virtio_pci.c  |  67 ++++--------
 drivers/event/dlb2/pf/dlb2_main.c   | 156 ++++++++--------------------
 drivers/net/bnx2x/bnx2x.c           |  86 ++++++++-------
 drivers/net/bnx2x/bnx2x.h           |  46 --------
 drivers/net/cxgbe/base/adapter.h    |  31 +-----
 drivers/net/gve/gve_ethdev.c        |  46 +-------
 drivers/net/gve/gve_ethdev.h        |  14 +--
 drivers/net/hns3/hns3_ethdev_vf.c   | 109 +++----------------
 drivers/net/ngbe/base/ngbe_hw.c     |  20 +---
 drivers/net/ngbe/base/ngbe_osdep.h  |   3 -
 drivers/net/virtio/virtio_pci.c     | 131 ++++-------------------
 drivers/vdpa/ifc/base/ifcvf_osdep.h |   4 +-
 lib/pci/rte_pci.h                   |  93 +++++++++++++++--
 20 files changed, 396 insertions(+), 736 deletions(-)

-- 
2.41.0