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(-)

-- 
2.52.0

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to