case OFPTYPE_TABLE_FEATURES_STATS_REPLY:
case OFPTYPE_BUNDLE_CONTROL:
case OFPTYPE_BUNDLE_ADD_MESSAGE:
+ case OFPTYPE_NXT_GENEVE_TABLE_MOD:
+ case OFPTYPE_NXT_GENEVE_TABLE_REQUEST:
+ case OFPTYPE_NXT_GENEVE_TABLE_REPLY:
default:
/* Messages that are generally unexpected. */
if (VLOG_IS_DBG_ENABLED()) {
{
fm->buffer_id = UINT32_MAX;
fm->out_port = OFPP_ANY;
- fm->out_group = OFPG_ALL;
+ fm->out_group = OFPG_ANY;
queue_msg(ofputil_encode_flow_mod(fm, OFPUTIL_P_OF13_OXM));
}
if (!d) {
/* Installed flow is no longer desirable. Delete it from the
* switch and from installed_flows. */
- struct ofputil_flow_mod fm = {
- .match = i->match,
- .priority = i->priority,
- .table_id = i->table_id,
- .command = OFPFC_DELETE_STRICT,
- };
+ struct ofputil_flow_mod fm;
+ memset(&fm, 0, sizeof fm);
+ fm.match = i->match;
+ fm.priority = i->priority;
+ fm.table_id = i->table_id;
+ fm.command = OFPFC_DELETE_STRICT;
queue_flow_mod(&fm);
ovn_flow_log(i, "removing");
if (!ofpacts_equal(i->ofpacts, i->ofpacts_len,
d->ofpacts, d->ofpacts_len)) {
/* Update actions in installed flow. */
- struct ofputil_flow_mod fm = {
- .match = i->match,
- .priority = i->priority,
- .table_id = i->table_id,
- .ofpacts = i->ofpacts,
- .ofpacts_len = i->ofpacts_len,
- .command = OFPFC_MODIFY_STRICT,
- };
+ struct ofputil_flow_mod fm;
+ memset(&fm, 0, sizeof fm);
+ fm.match = i->match;
+ fm.priority = i->priority;
+ fm.table_id = i->table_id;
+ fm.ofpacts = d->ofpacts;
+ fm.ofpacts_len = d->ofpacts_len;
+ fm.command = OFPFC_MODIFY_STRICT;
queue_flow_mod(&fm);
ovn_flow_log(i, "updating");
struct ovn_flow *d;
HMAP_FOR_EACH_SAFE (d, next, hmap_node, &desired_flows) {
/* Send flow_mod to add flow. */
- struct ofputil_flow_mod fm = {
- .match = d->match,
- .priority = d->priority,
- .table_id = d->table_id,
- .ofpacts = d->ofpacts,
- .ofpacts_len = d->ofpacts_len,
- .command = OFPFC_ADD,
- };
+ struct ofputil_flow_mod fm;
+ memset(&fm, 0, sizeof fm);
+ fm.match = d->match;
+ fm.priority = d->priority;
+ fm.table_id = d->table_id;
+ fm.ofpacts = d->ofpacts;
+ fm.ofpacts_len = d->ofpacts_len;
+ fm.command = OFPFC_ADD;
queue_flow_mod(&fm);
ovn_flow_log(d, "adding");