History

openvswitch: Add meter action support

Implements OVS kernel meter action support.

Andy Zhou committed 9 years ago

Commit cd8a6c31 parent 96fbc134 files · +16 −0Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/openvswitch.h+3−0
@@ -838,6 +838,8 @@ struct ovs_action_push_eth { · 837 unmodified lines
838838 * @OVS_ACTION_ATTR_CT_CLEAR: Clear conntrack state from the packet.
839839 * @OVS_ACTION_ATTR_PUSH_NSH: push NSH header to the packet.
840840 * @OVS_ACTION_ATTR_POP_NSH: pop the outermost NSH header off the packet.
841+ * @OVS_ACTION_ATTR_METER: Run packet through a meter, which may drop the
842+ * packet, or modify the packet (e.g., change the DSCP field).
841843 *
842844 * Only a single header can be set with a single %OVS_ACTION_ATTR_SET. Not all
843845 * fields within a header are modifiable, e.g. the IPv4 protocol and fragment
@@ -870,6 +872,7 @@ enum ovs_action_attr { · 26 unmodified lines
870872 OVS_ACTION_ATTR_CT_CLEAR, /* No argument. */
871873 OVS_ACTION_ATTR_PUSH_NSH, /* Nested OVS_NSH_KEY_ATTR_*. */
872874 OVS_ACTION_ATTR_POP_NSH, /* No argument. */
875+ OVS_ACTION_ATTR_METER, /* u32 meter ID. */
873876
874877 __OVS_ACTION_ATTR_MAX, /* Nothing past this will be accepted
875878 * from userspace. */