Skip to content

pci cleanup

David Marchand dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 1 replyIn review
  2. v17 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7pci: fix potential mem leakslib/librte_eal/linuxapp/eal/eal_pci.c+7 -40 replies
2/7pci: align bsd implementation on linuxlib/librte_eal/bsdapp/eal/eal_pci.c+23 -190 replies
3/7pci: remove virtio-uio workaroundlib/librte_eal/bsdapp/eal/eal_pci.c lib/librte_eal/linuxapp/eal/eal_pci.c lib/librte_pmd_virtio/virtio_ethdev.c+134 -380 replies
4/7pci: rework interrupt fd init and fix fd leaklib/librte_eal/bsdapp/eal/eal_pci.c lib/librte_eal/linuxapp/eal/eal_pci.c+62 -690 replies
5/7pci: pci_switch_module cleanuplib/librte_eal/linuxapp/eal/eal_pci.c+9 -150 replies
6/7pci: move RTE_PCI_DRV_FORCE_UNBIND handling out of #ifdeflib/librte_eal/linuxapp/eal/eal_pci.c+44 -450 replies
7/7pci: remove deprecated RTE_EAL_UNBIND_PORTS optionlib/librte_eal/linuxapp/eal/eal_pci.c+0 -1710 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAnatoly BurakovNeil Horman
SeriesA-b A-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/7] pci cleanup

Hello all,

Here is an attempt at having an equal implementation in bsd and linux eal_pci.c. It results in following changes :
- checks on driver flag in bsd which were missing
- remove virtio-uio workaround in linux eal_pci.c
- remove deprecated RTE_EAL_UNBIND_PORTS option

Along the way, I discovered two small bugs: a mem leak in linux eal_pci.c and a fd leak in both bsd and linux eal_pci.c.

Changes included in v2:
- fix another mem leak noticed by Anatoly Burakov

Signature · 18 lines
David Marchand

David Marchand (7):
  pci: fix potential mem leaks
  pci: align bsd implementation on linux
  pci: remove virtio-uio workaround
  pci: rework interrupt fd init and fix fd leak
  pci: pci_switch_module cleanup
  pci: move RTE_PCI_DRV_FORCE_UNBIND handling out of #ifdef
  pci: remove deprecated RTE_EAL_UNBIND_PORTS option

 lib/librte_eal/bsdapp/eal/eal_pci.c   |  105 ++++++------
 lib/librte_eal/linuxapp/eal/eal_pci.c |  282 +++++----------------------------
 lib/librte_pmd_virtio/virtio_ethdev.c |  133 +++++++++++++++-
 3 files changed, 218 insertions(+), 302 deletions(-)

-- 
1.7.10.4