diff options
author | Justin Pettit <jpettit@ovn.org> | 2018-06-19 18:28:46 -0700 |
---|---|---|
committer | Justin Pettit <jpettit@ovn.org> | 2018-07-30 17:57:13 -0700 |
commit | 206ddb9adbac045fa00fd1727f273a0552fb9c28 (patch) | |
tree | 6aa9e768038fe93f9fa437f244f6d41f812fa9de /include | |
parent | 9f89d5d90fcd7e31feaf544669aecfde44fa3d2c (diff) | |
download | openvswitch-206ddb9adbac045fa00fd1727f273a0552fb9c28.tar.gz |
ofproto: Add support for specifying a meter in controller actions.
Signed-off-by: Justin Pettit <jpettit@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openvswitch/ofp-actions.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/openvswitch/ofp-actions.h b/include/openvswitch/ofp-actions.h index b3dd0959d..3b0350496 100644 --- a/include/openvswitch/ofp-actions.h +++ b/include/openvswitch/ofp-actions.h @@ -287,6 +287,8 @@ struct ofpact_output { uint16_t max_len; /* Max send len, for port OFPP_CONTROLLER. */ }; +#define NX_CTLR_NO_METER 0 + /* OFPACT_CONTROLLER. * * Used for NXAST_CONTROLLER. */ @@ -305,6 +307,12 @@ struct ofpact_controller { /* Arbitrary data to include in the packet-in message (currently, * only in NXT_PACKET_IN2). */ uint16_t userdata_len; + + /* Meter to which this controller action should be associated. + * If requested, this will override a "controller" virtual meter. + * A value of NX_CTLR_NO_METER means no meter is requested. */ + uint32_t meter_id; + uint32_t provider_meter_id; ); uint8_t userdata[0]; }; |