[ovs-dev] [PATCH] ofp-actions: Fix translation of set_field for nw_ecn

Ben Pfaff blp at ovn.org
Thu Mar 9 00:48:22 UTC 2017


On Tue, Feb 21, 2017 at 02:22:53PM -0500, Eric Garver wrote:
> 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 at 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 at erig.me>

Thanks a lot!  I applied this to master and branch-2.7.


More information about the dev mailing list