DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] net/tap: fix Rx queue interrupt support
@ 2026-07-17  9:58 Maxime Leroy
  2026-07-17  9:58 ` [PATCH 1/2] net/tap: support Rx queue interrupt enable/disable Maxime Leroy
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Maxime Leroy @ 2026-07-17  9:58 UTC (permalink / raw)
  To: dev; +Cc: Stephen Hemminger, stable, Maxime Leroy

The tap PMD registers each queue file descriptor for Rx interrupts but the
feature is not actually usable through the generic API. This series fixes
two distinct issues, both against the original Rx interrupt support.

Patch 1 adds the missing rx_queue_intr_enable/disable ops. Without them
rte_eth_dev_rx_intr_enable() returns -ENOTSUP, so applications that arm
queues before sleeping (l3fwd-power and similar) treat tap as having no
interrupt support and fall back to polling.

Patch 2 fixes a traffic stall specific to interrupt mode: the Rx burst
skips reading the queue fd until the SIGIO trigger advances, but in
interrupt mode the application wakes through epoll, a distinct signal, so
the burst can return 0 right after a wakeup and the fd stays readable with
no further edge. The fd is now drained unconditionally in interrupt mode
and the SIGIO trigger is not armed on the data queue fds.

Both patches are candidates for stable.

Maxime Leroy (2):
  net/tap: support Rx queue interrupt enable/disable
  net/tap: drain queue FD in Rx interrupt mode

 drivers/net/tap/rte_eth_tap.c | 23 +++++++++++++++++-
 drivers/net/tap/rte_eth_tap.h |  5 ++++
 drivers/net/tap/tap_intr.c    | 44 +++++++++++++++++++++++++++++++++++
 3 files changed, 71 insertions(+), 1 deletion(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-07-27 12:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-17  9:58 [PATCH 0/2] net/tap: fix Rx queue interrupt support Maxime Leroy
2026-07-17  9:58 ` [PATCH 1/2] net/tap: support Rx queue interrupt enable/disable Maxime Leroy
2026-07-17  9:58 ` [PATCH 2/2] net/tap: drain queue FD in Rx interrupt mode Maxime Leroy
2026-07-17 12:31   ` Stephen Hemminger
2026-07-20  8:33     ` Maxime Leroy
2026-07-20 11:16       ` Stephen Hemminger
2026-07-20 12:06 ` [PATCH v2 0/3] net/tap: fix Rx queue interrupt support Maxime Leroy
2026-07-20 12:06   ` [PATCH v2 1/3] net/tap: support Rx queue interrupt enable/disable Maxime Leroy
2026-07-20 12:06   ` [PATCH v2 2/3] net/tap: drain queue FD in Rx interrupt mode Maxime Leroy
2026-07-20 12:06   ` [PATCH v2 3/3] net/tap: use bool for boolean flags Maxime Leroy
2026-07-26 17:27   ` [PATCH v2 0/3] net/tap: fix Rx queue interrupt support Stephen Hemminger
2026-07-27 12:48     ` Maxime Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox