summaryrefslogtreecommitdiff
path: root/vswitchd
diff options
context:
space:
mode:
authorEmma Finn <emma.finn@intel.com>2022-07-15 10:16:14 +0000
committerIan Stokes <ian.stokes@intel.com>2022-07-15 11:38:16 +0100
commit95e4a35b0a1d1c9687d3eca86966ad4b61df54dc (patch)
tree5c61d424c8915a802c49f95577ac13bba9702fce /vswitchd
parentd807a2bb4ee2ccd474e547d76d19ed62d0a08f13 (diff)
downloadopenvswitch-95e4a35b0a1d1c9687d3eca86966ad4b61df54dc.tar.gz
odp-execute: Add function pointers to odp-execute for different action implementations.
This commit introduces the initial infrastructure required to allow different implementations for OvS actions. The patch introduces action function pointers which allows user to switch between different action implementations available. This will allow for more performance and flexibility so the user can choose the action implementation to best suite their use case. Signed-off-by: Emma Finn <emma.finn@intel.com> Acked-by: Harry van Haaren <harry.van.haaren@intel.com> Acked-by: Sunil Pai G <sunil.pai.g@intel.com> Acked-by: Eelco Chaudron <echaudro@redhat.com> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
Diffstat (limited to 'vswitchd')
-rw-r--r--vswitchd/bridge.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index e328d8ead..b704410d3 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -40,6 +40,7 @@
#include "netdev.h"
#include "netdev-offload.h"
#include "nx-match.h"
+#include "odp-execute.h"
#include "ofproto/bond.h"
#include "ofproto/ofproto.h"
#include "openvswitch/dynamic-string.h"
@@ -530,6 +531,8 @@ bridge_init(const char *remote)
stp_init();
lldp_init();
rstp_init();
+ odp_execute_init();
+
ifaces_changed = seq_create();
last_ifaces_changed = seq_read(ifaces_changed);
ifnotifier = if_notifier_create(if_change_cb, NULL);