Skip to content

interrupt disconnect/error event handling

Kevin Traynor dpdk-dev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 1 replyIn review
  2. v4 posting 2/23 patches 5 repliesSuperseded
  3. v4 posting 1/20 of 3 patches 0 repliesSuperseded

Changes in v5 from the cover letter

- 2/3 changed API to rte_intr_active_event_flags() and made internal. used RTE_BIT32() for defines. Added Cc: stable. Kept Acks as no functional changes.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3eal/linux: handle interrupt epoll eventslib/eal/linux/eal_interrupts.c+46 -260 replies
2/3eal/interrupt: add interrupt event infolib/eal/freebsd/eal_interrupts.c lib/eal/include/rte_interrupts.h lib/eal/linux/eal_interrupts.c +1 more+65 -10 replies
3/3net/mlx5: check devx disconnect/error interrupt eventsdrivers/net/mlx5/linux/mlx5_ethdev_os.c+20 -00 replies

Reviews trailers per patch

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

PatchDavid MarchandStephen HemmingerViacheslav Ovsiienko
1/3A-b A-b
2/3A-b
3/3A-b A-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 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/3] interrupt disconnect/error event handling

These patches are to fix some issues with epoll event handling for EPOLLERR/EPOLLRDHUP/EPOLLHUP.

1/3: handles these disconnect/error events for interrupts that are read in eal

2/3: provides an internal API for interrupt callbacks to get the interrupt events for the active interrupt

3/3: deal with the observed issue as reported in
https://bugs.dpdk.org/show_bug.cgi?id=1873 where mlx5 devx interrupts cause a busy-loop and 100% CPU of dpdk-intr thread.

v5:
- 2/3 changed API to rte_intr_active_event_flags() and made internal. used RTE_BIT32() for defines. Added Cc: stable. Kept Acks as no functional changes.

v4:
Updated to allow for case where devx interrupt handler may handle multiple completions during one interrupt call, leading to no data being read in a subsequent call as flagged by Slava.

- 1/3 No change
- 2/3 New API rte_intr_active_events() to get interrupt events
- 3/3 Use new API in mlx5 devx interrupt handler to detect if disconnect/error events and if so unregister the callback

v3:
- 1/2 and 2/2 fix some coding nits (Stephen/AI/David)
- 2/2 Make log level consistant (David)

v2:
- Only handle disconnect/error epoll events when the read is done in eal interrupt code. This is to allow interrupt handlers like virtio deal with disconnects in an appropriate
- Detect if not data is read in the mlx dex interrupt and if so unregister the callback

Kevin Traynor (3):
eal/linux: handle interrupt epoll events eal/interrupt: add interrupt event info net/mlx5: check devx disconnect/error interrupt events

 drivers/net/mlx5/linux/mlx5_ethdev_os.c |  20 +++++
 lib/eal/freebsd/eal_interrupts.c        |   7 ++
 lib/eal/include/rte_interrupts.h        |  21 +++++
 lib/eal/linux/eal_interrupts.c          | 103 +++++++++++++++++-------
 lib/eal/windows/eal_interrupts.c        |   7 ++
 5 files changed, 131 insertions(+), 27 deletions(-)
Signature · 1 line
2.53.0