Skip to content

RFC Interrupts API update

David Marchand dpdk-dev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 posting 2/25 patches 2 repliesApplied
  2. v4 RFC Latest5 patches 2 repliesIn review
  3. v3 RFC5 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 RFC posting 1/23 patches0 repliesSuperseded
v1 RFC4 patches7 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5vdpa/mlx5: fix check on err interrupt FDdrivers/vdpa/mlx5/mlx5_vdpa_event.c+3 -21 reply
2/5eal/freebsd: fix a FD leak in the alarm subsystemlib/eal/freebsd/eal_alarm.c+6 -11 reply
3/5interrupts: mark file descriptors invalid on allocationapp/test/test_interrupts.c doc/guides/rel_notes/release_26_11.rst drivers/bus/cdx/cdx_vfio.c +13 more+24 -560 replies
4/5interrupts: close interrupt FDsapp/test/test_interrupts.c doc/guides/rel_notes/release_26_11.rst drivers/bus/cdx/cdx_vfio.c +12 more+147 -800 replies
5/5interrupts: warn on leaked file descriptorsapp/test/test_interrupts.c drivers/bus/cdx/cdx_vfio.c drivers/bus/pci/linux/pci_vfio.c +10 more+35 -30 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchBruce RichardsonDariusz Sosnowski
1/5A-b
2/5A-b
3/5
4/5
5/5

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

Read the v4 thread

Cover letter [RFC v4 0/5] Interrupts API update

This series is a simple cleanup to have a simpler helper that close all FD reference in an interrupt handle.
It helped catch one small FD leak in FreeBSD EAL.

This should make life (a bit) easier on driver side and help limit FD leaks.

Signature · 53 lines
David Marchand

Changes since RFC v3:
- fixed FreeBSD compilation,

Changes since RFC v2:
- added unit test for the new API,
- caught some FD leak by code review,
- split patch 3 from v2 in two, and added one debug check (see patch 5),

Changes since RFC v1:
- squashed FreeBSD PCI change,
- updated interrupt unit test,


David Marchand (5):
  vdpa/mlx5: fix check on err interrupt FD
  eal/freebsd: fix a FD leak in the alarm subsystem
  interrupts: mark file descriptors invalid on allocation
  interrupts: close interrupt FDs
  interrupts: warn on leaked file descriptors

 app/test/test_interrupts.c                    | 89 ++++++++++++++++++-
 doc/guides/rel_notes/release_26_11.rst        |  7 ++
 drivers/bus/cdx/cdx_vfio.c                    | 16 ++--
 drivers/bus/pci/bsd/pci.c                     |  7 +-
 drivers/bus/pci/linux/pci_uio.c               | 15 +---
 drivers/bus/pci/linux/pci_vfio.c              | 29 ++----
 drivers/bus/pci/pci_common_uio.c              | 18 +---
 drivers/bus/vmbus/linux/vmbus_uio.c           | 13 +--
 drivers/bus/vmbus/vmbus_common_uio.c          | 17 +---
 drivers/common/cnxk/roc_platform.h            |  2 +
 drivers/common/mlx5/linux/mlx5_common_os.c    |  6 +-
 drivers/net/failsafe/failsafe.c               |  3 -
 drivers/net/mana/mana.c                       |  5 +-
 drivers/net/memif/memif_socket.c              | 13 +--
 drivers/net/memif/rte_eth_memif.c             |  6 --
 drivers/net/mlx4/mlx4.c                       |  3 -
 drivers/net/mlx4/mlx4_intr.c                  |  1 +
 drivers/net/sxe2/sxe2_irq.c                   |  5 +-
 drivers/net/tap/rte_eth_tap.c                 |  2 +-
 .../net/virtio/virtio_user/virtio_user_dev.c  |  2 +
 drivers/raw/cnxk_gpio/cnxk_gpio.c             |  3 +
 drivers/vdpa/mlx5/mlx5_vdpa_event.c           |  6 +-
 drivers/vdpa/mlx5/mlx5_vdpa_virtq.c           |  1 +
 lib/eal/common/eal_common_interrupts.c        | 35 ++++++++
 lib/eal/freebsd/eal_alarm.c                   |  9 +-
 lib/eal/include/rte_interrupts.h              | 29 ++++++
 lib/eal/linux/eal_dev.c                       |  9 +-
 27 files changed, 212 insertions(+), 139 deletions(-)

-- 
2.54.0