mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
ofproto: Add support for reverting flow mods and bundle commit.
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -1795,11 +1795,19 @@ ofputil_decode_flow_mod(struct ofputil_flow_mod *fm,
|
||||
fm->command = command & 0xff;
|
||||
fm->table_id = command >> 8;
|
||||
} else {
|
||||
if (command > 0xff) {
|
||||
VLOG_WARN_RL(&bad_ofmsg_rl, "flow_mod has explicit table_id "
|
||||
"but flow_mod_table_id extension is not enabled");
|
||||
}
|
||||
fm->command = command;
|
||||
fm->table_id = 0xff;
|
||||
}
|
||||
}
|
||||
|
||||
if (fm->command > OFPFC_DELETE_STRICT) {
|
||||
return OFPERR_OFPFMFC_BAD_COMMAND;
|
||||
}
|
||||
|
||||
error = ofpacts_pull_openflow_instructions(&b, b.size,
|
||||
oh->version, ofpacts);
|
||||
if (error) {
|
||||
|
Reference in New Issue
Block a user