On 11/19/26 15:47, Eelco Chaudron wrote:
Allow the netdev_hw_post_process() callback to return an optional set of
alternative actions via a new 'alt_actions' parameter.  When set, these
actions are executed instead of the flow's own actions, enabling offload
providers to indicate that a subset of the actions was already performed
in hardware.

v5 changes:
  - Add more distinct naming for PHWOL hits.
  - Fixed some comments.
  - Changed some variable names based on review feedback.
  - Moved some statics in the dummy offload output.
  - Fixes flow statistics issue in the dummy offload provider.

v4 changes:
  - Add additional counter to count action continuation hits.

v3 changes:
  - Reworked dummy_build_alt_actions() to preserve action ordering,
    processing actions up to the first non-offloadable port and
    returning the remainder as alt_actions.  Also changed
    dummy_offload_hw_process_pkt() to adhere to this.
  - Restored comment in dummy_netdev_simulate_offload() that was
    incorrectly removed.
  - Fixed potential ABBA deadlock in dummy_netdev_hw_offload_run()
    that was introduced.

v2 changes:
  - Removed first patch adding the ALWAYS_INLINE attribute
  - Use positive error codes in dpif-offload-dummy.c
  - Fixed some style issues

Eelco Chaudron (2):
   dpif-offload: Add support for alternative actions.
   dpif-offload-dummy: Exercise hw_post_process() alt_actions API.

  lib/dpif-netdev-perf.c      |  45 ++++++-----
  lib/dpif-netdev-perf.h      |   5 +-
  lib/dpif-netdev.c           | 115 ++++++++++++++++++++-------
  lib/dpif-offload-dpdk.c     |   5 +-
  lib/dpif-offload-dummy.c    | 151 +++++++++++++++++++++++++++++++-----
  lib/dpif-offload-provider.h |   7 +-
  lib/dpif-offload.c          |   4 +-
  lib/dpif-offload.h          |   7 ++
  tests/dpif-netdev.at        | 121 ++++++++++++++++++++++++++---
  tests/ofproto-dpif.at       |  65 ++++++++++------
  tests/pmd.at                |  27 +++----
  11 files changed, 435 insertions(+), 117 deletions(-)


Thanks Eelco and Eli. Applied!

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

Reply via email to