Interrupt mode PMD
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v15 Latest13 patches 4 repliesIn review
- v1413 patches 7 repliesSuperseded
- v1314 patches 14 repliesSuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v12 | 14 patches | 1 reply | Superseded | |
| v11 | 13 patches | 1 reply | Superseded | |
| v10 | 13 patches | 8 replies | Superseded | |
| v9 | 12 patches | 9 replies | Superseded | |
| v8 | 11 patches | 14 replies | Superseded |
Changes in v15 from the cover letter
- remove unnecessary RTE_NEXT_ABI comment
- remove ifdef RTE_NEXT_ABI from header file
Patches in v15 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | eal/linux: add interrupt vectors support in intr_handlelib/ | +8 | 0 replies | |
| 2/13 | eal/linux: add rte_epoll_wait/ctl supportlib/ lib/ lib/ | +222 | 0 replies | |
| 3/13 | eal/linux: add API to set rx interrupt event monitorlib/ lib/ lib/ | +138 | 0 replies | |
| 4/13 | eal/linux: fix comments typo on vfio msilib/ | +2 | 0 replies | |
| 5/13 | eal/linux: map eventfd to VFIO MSI-X intr vectorlib/ | +20 | 0 replies | |
| 6/13 | eal/linux: standalone intr event fd create supportlib/ lib/ lib/ | +146 | 0 replies | |
| 7/13 | eal/linux: fix lsc read error in uio_pci_genericlib/ | +1 | 0 replies | |
| 8/13 | eal/bsd: dummy for new intr definitionlib/ lib/ lib/ | +115 | 1 reply | |
| 9/13 | eal/bsd: fix inappropriate linuxapp referred in bsdlib/ | +3 | 0 replies | |
| 10/13 | ethdev: add rx intr enable, disable and ctl functionslib/ lib/ lib/ | +255 | 0 replies | |
| 11/13 | ixgbe: enable rx queue interrupts for both PF and VFdrivers/ drivers/ | +518 | 0 replies | |
| 12/13 | igb: enable rx queue interrupts for PFdrivers/ | +277 | 0 replies | |
| 13/13 | l3fwd-power: enable one-shot rx interrupt and polling/interrupt mode switchexamples/ | +165 | 1 reply |
Reviews trailers per patch
None of the 13 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Stephen Hemminger | Danny Zhou |
|---|---|---|
| Series | A-b | A-b |
| 1/13 | ||
| 2/13 | ||
| 3/13 | ||
| 4/13 | ||
| 5/13 | ||
| 6/13 | ||
| 7/13 | ||
| 8/13 | ||
| 9/13 | ||
| 10/13 | ||
| 11/13 | ||
| 12/13 | ||
| 13/13 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v15 00/13] Interrupt mode PMD
v15 changes
- remove unnecessary RTE_NEXT_ABI comment
- remove ifdef RTE_NEXT_ABI from header file
v14 changes
- per-patch basis ABI compatibility rework
- remove unnecessary 'local: *' from version map
- minor comments rework
v13 changes
- version map cleanup for v2.1
- replace RTE_EAL_RX_INTR by RTE_NEXT_ABI for ABI compatibility
Patch series v12
v12 changes
- bsd cleanup for unused variable warning
- fix awkward line split in debug message
v11 changes
- typo cleanup and check kernel style
v10 changes
- code rework to return actual error code
- bug fix for lsc when using uio_pci_generic
v9 changes
- code rework to fix open comment
- bug fix for igb lsc when both lsc and rxq are enabled in vfio-msix
- new patch to turn off the feature by default so as to avoid v2.1 abi broken
v8 changes
- remove condition check for only vfio-msix
- add multiplex intr support when only one intr vector allowed
- lsc and rxq interrupt runtime enable decision
- add safe event delete while the event wakeup execution happens
v7 changes
- decouple epoll event and intr operation
- add condition check in the case intr vector is disabled
- renaming some APIs
v6 changes
- split rte_intr_wait_rx_pkt into two APIs 'wait' and 'set'.
- rewrite rte_intr_rx_wait/rte_intr_rx_set.
- using vector number instead of queue_id as interrupt API params.
- patch reorder and split.
v5 changes
- Rebase the patchset onto the HEAD
- Isolate ethdev from EAL for new-added wait-for-rx interrupt function
- Export wait-for-rx interrupt function for shared libraries
- Split-off a new patch file for changed struct rte_intr_handle that other patches depend on, to avoid breaking git bisect
- Change sample applicaiton to accomodate EAL function spec change accordingly
v4 changes
- Export interrupt enable/disable functions for shared libraries
- Adjust position of new-added structure fields and functions to avoid breaking ABI
v3 changes
- Add return value for interrupt enable/disable functions
- Move spinlok from PMD to L3fwd-power
- Remove unnecessary variables in e1000_mac_info
- Fix miscelleous review comments
v2 changes
- Fix compilation issue in Makefile for missed header file.
- Consolidate internal and community review comments of v1 patch set.
The patch series introduce low-latency one-shot rx interrupt into DPDK with polling and interrupt mode switch control example.
DPDK userspace interrupt notification and 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(PF & VF) and igb PMD(PF only) .
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.
Known limitations:
1) It does not work for UIO due to a single interrupt eventfd shared by LSC and rx queue interrupt handlers causes a mess. [FIXED]
2) LSC interrupt is not supported by VF driver, so it is by default disabled in L3fwd-power now. Feel free to turn in on if you want to support both LSC and rx queue interrupts on a PF.
Cunming Liang (13):
eal/linux: add interrupt vectors support in intr_handle eal/linux: add rte_epoll_wait/ctl support
eal/linux: add API to set rx interrupt event monitor eal/linux: fix comments typo on vfio msi
eal/linux: map eventfd to VFIO MSI-X intr vector eal/linux: standalone intr event fd create support eal/linux: fix lsc read error in uio_pci_generic
eal/bsd: dummy for new intr definition
eal/bsd: fix inappropriate linuxapp referred in bsd
ethdev: add rx intr enable, disable and ctl functions
ixgbe: enable rx queue interrupts for both PF and VF
igb: enable rx queue interrupts for PF
l3fwd-power: enable one-shot rx interrupt and polling/interrupt mode
switch
drivers/net/e1000/igb_ethdev.c | 311 ++++++++++-- drivers/net/ixgbe/ixgbe_ethdev.c | 527 ++++++++++++++++++++- drivers/net/ixgbe/ixgbe_ethdev.h | 4 + examples/l3fwd-power/main.c | 205 ++++++-- lib/librte_eal/bsdapp/eal/eal_interrupts.c | 42 ++ .../bsdapp/eal/include/exec-env/rte_interrupts.h | 74 ++- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 5 + lib/librte_eal/linuxapp/eal/eal_interrupts.c | 414 ++++++++++++++-- .../linuxapp/eal/include/exec-env/rte_interrupts.h | 153 ++++++ lib/librte_eal/linuxapp/eal/rte_eal_version.map | 8 + lib/librte_ether/rte_ethdev.c | 147 ++++++ lib/librte_ether/rte_ethdev.h | 104 ++++ lib/librte_ether/rte_ether_version.map | 4 + 13 files changed, 1870 insertions(+), 128 deletions(-)
Signature · 1 line
1.8.1.4