mbox series

[ovs-dev,v2,0/2] dpif-offload: Add PMD thread helpers and hardware offload simulation

Message ID cover.1775044381.git.echaudro@redhat.com
Headers show
Series dpif-offload: Add PMD thread helpers and hardware offload simulation | expand

Message

Eelco Chaudron April 1, 2026, 11:57 a.m. UTC
This series adds infrastructure for hardware offload providers to                                                                                                        
register callbacks that execute as part of PMD thread processing, and            
uses this infrastructure to implement simulated hardware offload in the
dummy offload provider.

Patch 1 adds the PMD thread lifecycle hooks that allow offload providers
to initialize per-PMD contexts, register work callbacks that run in each
PMD iteration, and properly clean up on thread exit.  Cycle statistics
are integrated into the existing PMD performance metrics.

Patch 2 leverages this infrastructure for the full hardware offload
simulation in the dummy provider.

Note that the second patch in the series depends on another patch
currently on the mailing list:

  https://patchwork.ozlabs.org/project/openvswitch/list/?series=498322

Eelco Chaudron (2):
  dpif-offload: Add infrastructure for offload provider PMD helpers.
  dummy-offload: Use pmd_thread_lifecycle APIs for HW simulator.

 lib/dpif-netdev-perf.c        |  19 ++++-
 lib/dpif-netdev-perf.h        |   3 +-
 lib/dpif-netdev.c             |  42 ++++++++++-
 lib/dpif-offload-dummy.c      |  44 +++++++++--
 lib/dpif-offload-provider.h   |  26 +++++++
 lib/dpif-offload.c            | 133 ++++++++++++++++++++++++++++++++++
 lib/dpif-offload.h            |  11 +++
 lib/dummy.h                   |   1 -
 lib/netdev-dummy.c            |   1 -
 tests/pmd.at                  |  32 ++++++++
 utilities/checkpatch_dict.txt |   2 +
 11 files changed, 298 insertions(+), 16 deletions(-)