mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
ofp-util: Abstract flow_mod OFPFF_* flags.
The OFPFF_* flags used in flow_mods are just confusing enough that it seems worthwhile to try to abstract them out. In particular: * OFPFF_EMERG was introduced in OF1.0, deleted in OF1.1, and then its bit was reused for a different purpose in OF1.2. * OFPFF_RESET_COUNTS was introduced in OF1.2 but the semantics that it specifies are implied by "add" commands in earlier versions, so proper translation requires the OpenFlow version number and flow_mod command. This commit does the abstraction. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
@@ -349,7 +349,8 @@ enum ofperr {
|
||||
/* OF1.0(3,4), OF1.1+(5,6). Unsupported or unknown command. */
|
||||
OFPERR_OFPFMFC_BAD_COMMAND,
|
||||
|
||||
/* OF1.2+(5,7). Unsupported or unknown flags. */
|
||||
/* NX1.0(3,258), NX1.1(5,258), OF1.2+(5,7). Unsupported or unknown
|
||||
* flags. */
|
||||
OFPERR_OFPFMFC_BAD_FLAGS,
|
||||
|
||||
/* OF1.0(3,5). Unsupported action list - cannot process in the order
|
||||
|
Reference in New Issue
Block a user