summaryrefslogtreecommitdiff
path: root/ofproto/ofproto.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2018-09-26 16:11:40 -0700
committerBen Pfaff <blp@ovn.org>2018-09-27 10:20:04 -0700
commitd31ac3b3797ab7be727bf5da39f098af619c61d8 (patch)
treec1a62192ea0386f64e90856798537aa3c82b7c5e /ofproto/ofproto.c
parent07706c500dd5cba48ec08580fcb3c59274445c18 (diff)
downloadopenvswitch-d31ac3b3797ab7be727bf5da39f098af619c61d8.tar.gz
ofproto: Fix build with some GCC versions.
GCC 4.8.x and possibly other versions don't like a designated initializer for an anonymous struct, see e.g. https://travis-ci.org/openvswitch/ovs/jobs/433747674 Fixes: f836888d28ec ("ofproto: Handle OpenFlow version mismatch for requestforward with groups.") Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
Diffstat (limited to 'ofproto/ofproto.c')
-rw-r--r--ofproto/ofproto.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
index a8cc4751f..0f8d74747 100644
--- a/ofproto/ofproto.c
+++ b/ofproto/ofproto.c
@@ -7393,13 +7393,12 @@ ofproto_group_mod_finish(struct ofproto *ofproto,
remove_groups_postponed(&ogm->old_groups);
if (req) {
- struct ofputil_requestforward rf = {
- .xid = req->request->xid,
- .reason = OFPRFR_GROUP_MOD,
- .group_mod = &ogm->gm,
- .new_buckets = new_group ? &new_group->buckets : NULL,
- .group_existed = group_collection_n(&ogm->old_groups) > 0,
- };
+ struct ofputil_requestforward rf;
+ rf.xid = req->request->xid;
+ rf.reason = OFPRFR_GROUP_MOD;
+ rf.group_mod = &ogm->gm;
+ rf.new_buckets = new_group ? &new_group->buckets : NULL;
+ rf.group_existed = group_collection_n(&ogm->old_groups) > 0;
connmgr_send_requestforward(ofproto->connmgr, req->ofconn, &rf);
}
}