aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/openvswitch.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/openvswitch.h')
-rw-r--r--include/linux/openvswitch.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h
index d42e174bd0c8..67d6c7b03581 100644
--- a/include/linux/openvswitch.h
+++ b/include/linux/openvswitch.h
@@ -94,7 +94,7 @@ struct ovs_vport_stats {
94}; 94};
95 95
96/* Fixed logical ports. */ 96/* Fixed logical ports. */
97#define OVSP_LOCAL ((__u16)0) 97#define OVSP_LOCAL ((__u32)0)
98 98
99/* Packet transfer. */ 99/* Packet transfer. */
100 100
@@ -127,7 +127,8 @@ enum ovs_packet_cmd {
127 * for %OVS_PACKET_CMD_EXECUTE. It has nested %OVS_ACTION_ATTR_* attributes. 127 * for %OVS_PACKET_CMD_EXECUTE. It has nested %OVS_ACTION_ATTR_* attributes.
128 * @OVS_PACKET_ATTR_USERDATA: Present for an %OVS_PACKET_CMD_ACTION 128 * @OVS_PACKET_ATTR_USERDATA: Present for an %OVS_PACKET_CMD_ACTION
129 * notification if the %OVS_ACTION_ATTR_USERSPACE action specified an 129 * notification if the %OVS_ACTION_ATTR_USERSPACE action specified an
130 * %OVS_USERSPACE_ATTR_USERDATA attribute. 130 * %OVS_USERSPACE_ATTR_USERDATA attribute, with the same length and content
131 * specified there.
131 * 132 *
132 * These attributes follow the &struct ovs_header within the Generic Netlink 133 * These attributes follow the &struct ovs_header within the Generic Netlink
133 * payload for %OVS_PACKET_* commands. 134 * payload for %OVS_PACKET_* commands.
@@ -137,7 +138,7 @@ enum ovs_packet_attr {
137 OVS_PACKET_ATTR_PACKET, /* Packet data. */ 138 OVS_PACKET_ATTR_PACKET, /* Packet data. */
138 OVS_PACKET_ATTR_KEY, /* Nested OVS_KEY_ATTR_* attributes. */ 139 OVS_PACKET_ATTR_KEY, /* Nested OVS_KEY_ATTR_* attributes. */
139 OVS_PACKET_ATTR_ACTIONS, /* Nested OVS_ACTION_ATTR_* attributes. */ 140 OVS_PACKET_ATTR_ACTIONS, /* Nested OVS_ACTION_ATTR_* attributes. */
140 OVS_PACKET_ATTR_USERDATA, /* u64 OVS_ACTION_ATTR_USERSPACE arg. */ 141 OVS_PACKET_ATTR_USERDATA, /* OVS_ACTION_ATTR_USERSPACE arg. */
141 __OVS_PACKET_ATTR_MAX 142 __OVS_PACKET_ATTR_MAX
142}; 143};
143 144
@@ -389,13 +390,13 @@ enum ovs_sample_attr {
389 * enum ovs_userspace_attr - Attributes for %OVS_ACTION_ATTR_USERSPACE action. 390 * enum ovs_userspace_attr - Attributes for %OVS_ACTION_ATTR_USERSPACE action.
390 * @OVS_USERSPACE_ATTR_PID: u32 Netlink PID to which the %OVS_PACKET_CMD_ACTION 391 * @OVS_USERSPACE_ATTR_PID: u32 Netlink PID to which the %OVS_PACKET_CMD_ACTION
391 * message should be sent. Required. 392 * message should be sent. Required.
392 * @OVS_USERSPACE_ATTR_USERDATA: If present, its u64 argument is copied to the 393 * @OVS_USERSPACE_ATTR_USERDATA: If present, its variable-length argument is
393 * %OVS_PACKET_CMD_ACTION message as %OVS_PACKET_ATTR_USERDATA, 394 * copied to the %OVS_PACKET_CMD_ACTION message as %OVS_PACKET_ATTR_USERDATA.
394 */ 395 */
395enum ovs_userspace_attr { 396enum ovs_userspace_attr {
396 OVS_USERSPACE_ATTR_UNSPEC, 397 OVS_USERSPACE_ATTR_UNSPEC,
397 OVS_USERSPACE_ATTR_PID, /* u32 Netlink PID to receive upcalls. */ 398 OVS_USERSPACE_ATTR_PID, /* u32 Netlink PID to receive upcalls. */
398 OVS_USERSPACE_ATTR_USERDATA, /* u64 optional user-specified cookie. */ 399 OVS_USERSPACE_ATTR_USERDATA, /* Optional user-specified cookie. */
399 __OVS_USERSPACE_ATTR_MAX 400 __OVS_USERSPACE_ATTR_MAX
400}; 401};
401 402