diff options
author | Ben Pfaff <blp@ovn.org> | 2018-09-25 14:06:37 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-09-26 13:49:43 -0700 |
commit | f836888d28ec89565f87609e06f48becb49e5079 (patch) | |
tree | 67cbab4a8ca8b1b47bf5788ee2a8a684434da28a /include/openvswitch/ofp-group.h | |
parent | ffe6cea89667a7e6d4ac0396f85acdcb3c64ce0e (diff) | |
download | openvswitch-f836888d28ec89565f87609e06f48becb49e5079.tar.gz |
ofproto: Handle OpenFlow version mismatch for requestforward with groups.
OpenFlow 1.4+ supports a feature called requestforward. When a controller
enables this feature, the switch sends that controller a copy of other
controllers' group and meter modification requests. OpenFlow 1.5 supports
some group features not in OpenFlow 1.4. When OVS attempted to forward
such requests to an OpenFlow 1.4 controller, it reported an error and
exited. This commit fixes the problem by making OVS properly translate the
messages to OpenFlow 1.4 format.
Reported-by: Pierre Cregut <pierre.cregut@orange.com>
Tested-by: Pierre Cregut <pierre.cregut@orange.com>
Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2018-September/047453.html
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'include/openvswitch/ofp-group.h')
-rw-r--r-- | include/openvswitch/ofp-group.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/openvswitch/ofp-group.h b/include/openvswitch/ofp-group.h index 10790eb02..cd7af0ebf 100644 --- a/include/openvswitch/ofp-group.h +++ b/include/openvswitch/ofp-group.h @@ -103,7 +103,9 @@ struct ofputil_group_mod { void ofputil_uninit_group_mod(struct ofputil_group_mod *gm); struct ofpbuf *ofputil_encode_group_mod(enum ofp_version ofp_version, - const struct ofputil_group_mod *gm); + const struct ofputil_group_mod *gm, + const struct ovs_list *new_buckets, + int group_existed); enum ofperr ofputil_decode_group_mod(const struct ofp_header *, struct ofputil_group_mod *); |