mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
96fbc13d7e
commit
cd8a6c3369
4 changed files with 16 additions and 0 deletions
|
@ -838,6 +838,8 @@ struct ovs_action_push_eth {
|
|||
* @OVS_ACTION_ATTR_CT_CLEAR: Clear conntrack state from the packet.
|
||||
* @OVS_ACTION_ATTR_PUSH_NSH: push NSH header to the packet.
|
||||
* @OVS_ACTION_ATTR_POP_NSH: pop the outermost NSH header off the packet.
|
||||
* @OVS_ACTION_ATTR_METER: Run packet through a meter, which may drop the
|
||||
* packet, or modify the packet (e.g., change the DSCP field).
|
||||
*
|
||||
* Only a single header can be set with a single %OVS_ACTION_ATTR_SET. Not all
|
||||
* fields within a header are modifiable, e.g. the IPv4 protocol and fragment
|
||||
|
@ -870,6 +872,7 @@ enum ovs_action_attr {
|
|||
OVS_ACTION_ATTR_CT_CLEAR, /* No argument. */
|
||||
OVS_ACTION_ATTR_PUSH_NSH, /* Nested OVS_NSH_KEY_ATTR_*. */
|
||||
OVS_ACTION_ATTR_POP_NSH, /* No argument. */
|
||||
OVS_ACTION_ATTR_METER, /* u32 meter ID. */
|
||||
|
||||
__OVS_ACTION_ATTR_MAX, /* Nothing past this will be accepted
|
||||
* from userspace. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue