[ovs-dev] [PATCH 1/3] megaflow: Add mask attribute to netlink protocol

Andy Zhou azhou at nicira.com
Thu Jun 6 05:46:05 UTC 2013


This patch is required for subsequent mega flow patchs.

Signed-off-by: Andy Zhou <azhou at nicira.com>
---
 include/linux/openvswitch.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h
index e890fd8..6e71b4c 100644
--- a/include/linux/openvswitch.h
+++ b/include/linux/openvswitch.h
@@ -410,6 +410,9 @@ struct ovs_key_nd {
  * @OVS_FLOW_ATTR_CLEAR: If present in a %OVS_FLOW_CMD_SET request, clears the
  * last-used time, accumulated TCP flags, and statistics for this flow.
  * Otherwise ignored in requests.  Never present in notifications.
+ * @OVS_FLOW_ATTR_MASK: Optional Nested %OVS_KEY_ATTR_* attributes specifying
+ * the mega flow mask. OVS_KEY_ATTR_* attributes specified only in OVS_FLOW_ATTR_KEY
+ * but not here will be treated as wildcard field.
  *
  * These attributes follow the &struct ovs_header within the Generic Netlink
  * payload for %OVS_FLOW_* commands.
@@ -422,6 +425,7 @@ enum ovs_flow_attr {
 	OVS_FLOW_ATTR_TCP_FLAGS, /* 8-bit OR'd TCP flags. */
 	OVS_FLOW_ATTR_USED,      /* u64 msecs last used in monotonic time. */
 	OVS_FLOW_ATTR_CLEAR,     /* Flag to clear stats, tcp_flags, used. */
+	OVS_FLOW_ATTR_MASK,      /* Sequence of OVS_KEY_ATTR_* attributes. */
 	__OVS_FLOW_ATTR_MAX
 };
 
-- 
1.7.9.5




More information about the dev mailing list