mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 22:35:15 +00:00
ofproto: Implement OF1.4 Group & Meter change notification messages
This patch adds support for Openflow1.4 Group & meter change notification messages. In a multi controller environment, when a controller modifies the state of group and meter table, the request that successfully modifies this state is forwarded to other controllers. Other controllers are informed with the OFPT_REQUESTFORWARD message. Request forwarding is enabled on a per controller channel basis using the Set Asynchronous Configuration Message. Signed-off-by: Niti Rohilla <niti.rohilla@tcs.com> Co-authored-by: Ben Pfaff <blp@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -1239,4 +1239,25 @@ struct ofpbuf *ofputil_encode_get_async_config(const struct ofp_header *,
|
||||
uint32_t master[OAM_N_TYPES],
|
||||
uint32_t slave[OAM_N_TYPES]);
|
||||
|
||||
struct ofputil_requestforward {
|
||||
ovs_be32 xid;
|
||||
enum ofp14_requestforward_reason reason;
|
||||
union {
|
||||
/* reason == OFPRFR_METER_MOD. */
|
||||
struct ofputil_meter_mod *meter_mod;
|
||||
|
||||
/* reason == OFPRFR_GROUP_MOD. */
|
||||
struct {
|
||||
struct ofputil_group_mod *group_mod;
|
||||
struct ofpbuf bands;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
struct ofpbuf *ofputil_encode_requestforward(
|
||||
const struct ofputil_requestforward *, enum ofputil_protocol);
|
||||
enum ofperr ofputil_decode_requestforward(const struct ofp_header *,
|
||||
struct ofputil_requestforward *);
|
||||
void ofputil_destroy_requestforward(struct ofputil_requestforward *);
|
||||
|
||||
#endif /* ofp-util.h */
|
||||
|
Reference in New Issue
Block a user