summaryrefslogtreecommitdiff
path: root/include/linux/openvswitch.h
diff options
context:
space:
mode:
authorYifeng Sun <pkusunyifeng@gmail.com>2018-07-02 08:18:03 -0700
committerDavid S. Miller <davem@davemloft.net>2018-07-08 11:13:25 +0900
commitb233504033dbd65740e59681820ccfd0a2a8ec53 (patch)
tree345441a88e44d3c9f0fd59327c4b2c138367f1e8 /include/linux/openvswitch.h
parent20fbdc35723f0b3e1a0d2948960244f9721d1646 (diff)
openvswitch: kernel datapath clone action
Add 'clone' action to kernel datapath by using existing functions. When actions within clone don't modify the current flow, the flow key is not cloned before executing clone actions. This is a follow up patch for this incomplete work: https://patchwork.ozlabs.org/patch/722096/ v1 -> v2: Refactor as advised by reviewer. Signed-off-by: Yifeng Sun <pkusunyifeng@gmail.com> Signed-off-by: Andy Zhou <azhou@ovn.org> Acked-by: Pravin B Shelar <pshelar@ovn.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/openvswitch.h')
-rw-r--r--include/linux/openvswitch.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h
index e6b240b6196c..379affc63e24 100644
--- a/include/linux/openvswitch.h
+++ b/include/linux/openvswitch.h
@@ -21,4 +21,9 @@
#include <uapi/linux/openvswitch.h>
+#define OVS_CLONE_ATTR_EXEC 0 /* Specify an u32 value. When nonzero,
+ * actions in clone will not change flow
+ * keys. False otherwise.
+ */
+
#endif /* _LINUX_OPENVSWITCH_H */