Thank you guys, "set_field" works now, the input command line is: """ ovs-ofctl add-flow -O OpenFlow13 br-int "hard_timeout=0,idle_timeout=0,priority=65535,cookie=17142212024999476593,in_port=2,table=0,ip,reg2=0,actions=set_field:16->ip_dscp,load:55->NXM_NX_REG2[0..5],resubmit(,0)" """
The command "ovs-ofctl dump-flows br-int -O OPENFLOW10" results: """ cookie=0xede55f036e85fd71, duration=1.537s, table=0, n_packets=0, n_bytes=0, priority=65535,ip,reg2=0,in_port="patch-tun" actions=mod_nw_tos:64,load:0x37->NXM_NX_REG2[0..5],resubmit(,0) """ "ovs-ofctl dump-flows br-int -O OPENFLOW13" results: """ cookie=0xede55f036e85fd71, duration=115.497s, table=0, n_packets=0, n_bytes=0, priority=65535,ip,reg2=0,in_port="patch-tun" actions=set_field:16->ip_dscp,load:0x37->NXM_NX_REG2[0..5],resubmit(,0) """ On Tue, Jul 13, 2021 at 12:14 AM Ben Pfaff <b...@ovn.org> wrote: > > On Mon, Jul 12, 2021 at 03:13:13PM +0800, LIU Yulong wrote: > > Recently, I tested OpenStack Neutron with DSCP marking functions. But, I > > met some errors related to the action "mod_nw_tos:<tos>", the command line > > input is: > > > > """ > > ovs-ofctl add-flow -O OpenFlow13 br-int > > "hard_timeout=0,idle_timeout=0,priority=65535,cookie=17142212024999476593,in_port=2,table=0,reg2=0,actions=mod_nw_tos:64,load:55->NXM_NX_REG2[0..5],resubmit(,0)" > > """ > > > > The error output is: > > """ > > ovs-ofctl: none of the usable flow formats (NXM+table_id) is among the > > allowed flow formats (OXM-OpenFlow13) > > """ > > Action "mod_nw_tos:<tos>" is causing the error here. > > > > So, I would ask which action for OPENFLOW13 is to do same work of > > "mod_nw_tos:<tos>" for OPENFLOW10? These is no doc mentioned such action > > for OPENFLOW13. > > OpenFlow 1.3 replaced all of the individual actions for setting fields > with the more general "set_field" action. You should be able to use > that. You will need to shift the TOS values two bits right to match the > OF1.3 format, I believe. _______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss