diff options
author | Eric Garver <e@erig.me> | 2017-02-21 14:22:53 -0500 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-03-08 16:44:01 -0800 |
commit | 1a1e1a49723417e61af65291de8da001b3055d8f (patch) | |
tree | f2b3072772dc35825517dc9895a03da7c48c9946 /include | |
parent | 26cea6adf80108af76721b94dfb313cfc61c7edd (diff) | |
download | openvswitch-1a1e1a49723417e61af65291de8da001b3055d8f.tar.gz |
ofp-actions: Fix translation of set_field for nw_ecn
When using set_field for nw_ecn with OF1.0 or OF1.1, you get an error
instead of a proper translation. This use to work before 4b684612d900
("ofp-actions: Translate mod_nw_ecn action to OF1.1 properly.") because
it would fallback to using NXM.
e.g.
[root@rhel7 ~]# ovs-ofctl -O OpenFlow10 add-flow br0 'ip actions=set_field:2->nw_ecn'
OFPT_ERROR (xid=0x4): OFPBAC_BAD_ARGUMENT
NXT_FLOW_MOD (xid=0x4):
...
$ ovs-ofctl -O OpenFlow11 add-flow br0 'ip actions=set_field:2->nw_ecn'
ovs-ofctl: none of the usable flow formats (NXM,OXM) is among the
allowed flow formats (OpenFlow11)
Fixes: 4b684612d900 ("ofp-actions: Translate mod_nw_ecn action to OF1.1 properly.")
Signed-off-by: Eric Garver <e@erig.me>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openvswitch/meta-flow.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/openvswitch/meta-flow.h b/include/openvswitch/meta-flow.h index 83e259933..53d3b41b3 100644 --- a/include/openvswitch/meta-flow.h +++ b/include/openvswitch/meta-flow.h @@ -1221,6 +1221,7 @@ enum OVS_PACKED_ENUM mf_field_id { * Access: read/write. * NXM: NXM_NX_IP_ECN(28) since v1.4. * OXM: OXM_OF_IP_ECN(9) since OF1.2 and v1.7. + * OF1.1: exact match. */ MFF_IP_ECN, |