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
838 * @OVS_ACTION_ATTR_CT_CLEAR: Clear conntrack state from the packet.838 * @OVS_ACTION_ATTR_CT_CLEAR: Clear conntrack state from the packet.
839 * @OVS_ACTION_ATTR_PUSH_NSH: push NSH header to the packet.839 * @OVS_ACTION_ATTR_PUSH_NSH: push NSH header to the packet.
840 * @OVS_ACTION_ATTR_POP_NSH: pop the outermost NSH header off the packet.840 * @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).
841 *843 *
842 * Only a single header can be set with a single %OVS_ACTION_ATTR_SET. Not all844 * Only a single header can be set with a single %OVS_ACTION_ATTR_SET. Not all
843 * fields within a header are modifiable, e.g. the IPv4 protocol and fragment845 * fields within a header are modifiable, e.g. the IPv4 protocol and fragment
@@ -870,6 +872,7 @@ enum ovs_action_attr { · 26 unmodified lines
870 OVS_ACTION_ATTR_CT_CLEAR, /* No argument. */872 OVS_ACTION_ATTR_CT_CLEAR, /* No argument. */
871 OVS_ACTION_ATTR_PUSH_NSH, /* Nested OVS_NSH_KEY_ATTR_*. */873 OVS_ACTION_ATTR_PUSH_NSH, /* Nested OVS_NSH_KEY_ATTR_*. */
872 OVS_ACTION_ATTR_POP_NSH, /* No argument. */874 OVS_ACTION_ATTR_POP_NSH, /* No argument. */
875 OVS_ACTION_ATTR_METER, /* u32 meter ID. */
873 876
874 __OVS_ACTION_ATTR_MAX, /* Nothing past this will be accepted877 __OVS_ACTION_ATTR_MAX, /* Nothing past this will be accepted
875 * from userspace. */878 * from userspace. */