aboutsummaryrefslogtreecommitdiff
path: root/lib/odp-util.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-05-09 09:36:08 -0700
committerBen Pfaff <blp@nicira.com>2012-05-09 13:28:37 -0700
commitabeea3938034a1b13da315e7de3e4519d01822f8 (patch)
treea384c34b6068d0f6e954f71db02c06805dbdafd6 /lib/odp-util.h
parent9167e1afd39a4b15ff5fc0f7ca09bcb7c011edd6 (diff)
ofproto-dpif: Clean up and centralize sFlow logic.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/odp-util.h')
-rw-r--r--lib/odp-util.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/odp-util.h b/lib/odp-util.h
index 3d337a7a..cdafbe46 100644
--- a/lib/odp-util.h
+++ b/lib/odp-util.h
@@ -124,11 +124,11 @@ enum user_action_cookie_type {
/* user_action_cookie is passed as argument to OVS_ACTION_ATTR_USERSPACE.
* Since it is passed to kernel as u64, its size has to be 8 bytes. */
struct user_action_cookie {
- uint8_t type; /* enum user_action_cookie_type. */
- uint8_t n_output; /* No of output ports. used by sflow. */
- ovs_be16 vlan_tci; /* Used by sFlow */
- uint32_t data; /* Data is len for OFPP_CONTROLLER action.
- For sFlow it is port_ifindex. */
+ uint16_t type; /* enum user_action_cookie_type. */
+
+ /* The following members are used only by USER_ACTION_COOKIE_SFLOW. */
+ ovs_be16 vlan_tci; /* Destination VLAN TCI. */
+ uint32_t output; /* SFL_FLOW_SAMPLE_TYPE 'output' value. */
};
BUILD_ASSERT_DECL(sizeof(struct user_action_cookie) == 8);