2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

nicira-ext: Renumber NXT_FLOW_MOD_TABLE_ID.

We don't know of anyone using this command in production yet, so it seems
reasonable to give it a new number instead of coping with it having a
conflicting number.
This commit is contained in:
Ben Pfaff
2011-06-09 15:18:21 -07:00
parent 6c222e55fa
commit d1e9b9bf30
2 changed files with 11 additions and 26 deletions

View File

@@ -373,6 +373,10 @@ ofputil_decode_vendor(const struct ofp_header *oh,
{ OFPUTIL_NXT_FLOW_REMOVED,
NXT_FLOW_REMOVED, "NXT_FLOW_REMOVED",
sizeof(struct nx_flow_removed), 8 },
{ OFPUTIL_NXT_FLOW_MOD_TABLE_ID,
NXT_FLOW_MOD_TABLE_ID, "NXT_FLOW_MOD_TABLE_ID",
sizeof(struct nxt_flow_mod_table_id), 0 },
};
static const struct ofputil_msg_category nxt_category = {
@@ -399,21 +403,6 @@ ofputil_decode_vendor(const struct ofp_header *oh,
}
nh = (const struct nicira_header *) oh;
if (nh->subtype == htonl(NXT_FLOW_MOD_TABLE_ID)
&& oh->length == htons(sizeof(struct nxt_flow_mod_table_id))) {
/* NXT_SET_FLOW_FORMAT and NXT_FLOW_MOD_TABLE_ID accidentally have the
* same value but different lengths. ofputil_lookup_openflow_message()
* doesn't support this case, so special case it here. */
static const struct ofputil_msg_type nxt_flow_mod_table_id =
{ OFPUTIL_NXT_FLOW_MOD_TABLE_ID,
NXT_FLOW_MOD_TABLE_ID, "NXT_FLOW_MOD_TABLE_ID",
sizeof(struct nxt_flow_mod_table_id), 0 };
*typep = &nxt_flow_mod_table_id;
return 0;
}
return ofputil_lookup_openflow_message(&nxt_category, ntohl(nh->subtype),
ntohs(oh->length), typep);
}