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.

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.c           | 101 ++++++++++++++++++------
 lib/dpif-offload-dpdk.c     |   5 +-
 lib/dpif-offload-dummy.c    | 148 +++++++++++++++++++++++++++++++-----
 lib/dpif-offload-provider.h |   7 +-
 lib/dpif-offload.c          |   4 +-
 lib/dpif-offload.h          |   7 ++
 tests/dpif-netdev.at        | 103 ++++++++++++++++++++++++-
 tests/ofproto-dpif.at       |  65 ++++++++++------
 8 files changed, 367 insertions(+), 73 deletions(-)

-- 
2.55.0

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

Reply via email to