Skip to content

RFC Introduce low-latency one-shot rx interrupt into DPDK with polling/interrupt switch control example

Danny Zhou dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ethdev: add rx interrupt enable/disable functionslib/librte_ether/rte_ethdev.c lib/librte_ether/rte_ethdev.h+102 -00 replies
2/5ixgbe: enable rx queue interruptslib/librte_pmd_ixgbe/ixgbe_ethdev.c+203 -00 replies
3/5eal: add per rx queue interrupt handling based on VFIOlib/librte_eal/common/include/rte_eal.h lib/librte_eal/linuxapp/eal/eal_interrupts.c lib/librte_eal/linuxapp/eal/eal_pci_vfio.c +1 more+137 -60 replies
4/5L3fwd-power: enable one-shot rx interrupt and polling/interrupt mode switchexamples/l3fwd-power/main.c+98 -290 replies
5/5ixgbe: enable rx queue interrupts for VFexamples/l3fwd-power/main.c lib/librte_eal/linuxapp/eal/eal_interrupts.c lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h +2 more+233 -560 replies

Reviews trailers per patch

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

PatchIvan Boule
SeriesA-b
1/5
2/5
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 v1 thread

Cover letter [RFC PATCH 0/5] Introduce low-latency one-shot rx interrupt into DPDK with polling/interrupt switch control example

DPDK interrupt notification/handling mechanism is based on UIO with below limitation:
1) It is designed to handle LSC interrupt only with inefficient suspended pthread wakeup procedure (e.g. UIO wakes up LSC interrupt handling thread which then wakes up DPDK polling thread). In this way, it introduces non-deterministic wakeup latency for DPDK polling thread as well as packet latency if it is used to handle Rx interrupt.
2) UIO only supports a single interrupt vector which has to been shared by LSC interrupt and interrupts assigned to dedicated rx queues.

This patchset includes below features:
1) Enable one-shot rx queue interrupt in ixgbe PMD for PF as well as VF.
2) Build on top of the VFIO mechanism instead of UIO, so it could support up to 64 interrupt vectors for rx queue interrupts.
3) Have 1 DPDK polling thread handle per Rx queue interrupt with a dedicated VFIO eventfd, which eliminates non-deterministic pthread wakeup latency in user space.
4) Demonstrate interrupts control APIs and userspace NAIP-like polling/interrupt switch algorithms in L3fwd-power example.

Danny Zhou (5):
ethdev: add rx interrupt enable/disable functions
ixgbe: enable rx queue interrupts
eal: add per rx queue interrupt handling based on VFIO
L3fwd-power: enable one-shot rx interrupt and polling/interrupt mode
switch
ixgbe: enable rx queue interrupts for VF

 examples/l3fwd-power/main.c                        | 171 +++++++---
 lib/librte_eal/common/include/rte_eal.h            |   9 +
 lib/librte_eal/linuxapp/eal/eal_interrupts.c       | 189 ++++++++---
 lib/librte_eal/linuxapp/eal/eal_pci_vfio.c         |  11 +-
 .../linuxapp/eal/include/exec-env/rte_interrupts.h |   4 +
 lib/librte_ether/rte_ethdev.c                      |  45 +++
 lib/librte_ether/rte_ethdev.h                      |  57 ++++
 lib/librte_pmd_ixgbe/ixgbe_ethdev.c                | 356 +++++++++++++++++++++
 lib/librte_pmd_ixgbe/ixgbe_ethdev.h                |   6 +
 9 files changed, 765 insertions(+), 83 deletions(-)
Signature · 1 line
1.8.1.4