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.

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    | 138 ++++++++++++++++++++++++++++++------
 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, 356 insertions(+), 74 deletions(-)

-- 
2.55.0

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

Reply via email to