interrupt disconnect/error event handling
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest3 patches 1 replyIn review
- v4 posting 2/23 patches 5 repliesSuperseded
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | eal/linux: handle interrupt epoll eventslib/ | +46 | 0 replies | |
| 2/3 | eal/interrupt: add interrupt event infolib/ lib/ lib/ +1 more | +65 | 0 replies | |
| 3/3 | net/mlx5: check devx disconnect/error interrupt eventsdrivers/ | +20 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | David Marchand | Stephen Hemminger | Viacheslav Ovsiienko |
|---|---|---|---|
| 1/3 | A-b | A-b | |
| 2/3 | A-b | ||
| 3/3 | A-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.
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