diff options
| author | Andy Zhou <azhou@ovn.org> | 2017-11-10 15:09:43 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-11-12 20:37:07 -0500 |
| commit | cd8a6c33693c1b89d2737ffdbf9611564e9ac907 (patch) | |
| tree | 758c1ad7b4613b907669ee97f0a8c89d24763a05 /include | |
| parent | 96fbc13d7e770b542d2d1fcf700d0baadc6e8063 (diff) | |
openvswitch: Add meter action support
Implements OVS kernel meter action support.
Signed-off-by: Andy Zhou <azhou@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/uapi/linux/openvswitch.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/openvswitch.h b/include/uapi/linux/openvswitch.h index d60b9a4cf3d1..4265d7f9e1f2 100644 --- a/include/uapi/linux/openvswitch.h +++ b/include/uapi/linux/openvswitch.h | |||
| @@ -838,6 +838,8 @@ struct ovs_action_push_eth { | |||
| 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 all | 844 | * 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 fragment | 845 | * fields within a header are modifiable, e.g. the IPv4 protocol and fragment |
| @@ -870,6 +872,7 @@ enum ovs_action_attr { | |||
| 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 accepted | 877 | __OVS_ACTION_ATTR_MAX, /* Nothing past this will be accepted |
| 875 | * from userspace. */ | 878 | * from userspace. */ |
