Thank you very much. I found If I enable it, the flows with flow-mask will be installed in kernel. Otherwise, the flow with no flow-mask wil be installed. But I could not understand how to calculate the mask should be used. If only one NORMAL rule exists, and I enabled megaflow, when one virtual machine ping another one, the flows bellow are installed.
root@comm:~# ovs-dpctl dump-flows skb_priority(0),in_port(9),eth(src=fa:16:3e:49:a8:9b,dst=fa:16:3e:99:79:7f),eth_type(0x0800),ipv4(src=192.168.10.2/0.0.0.0,dst=192.168.10.4/0.0.0.0,proto=1/0,tos=0/0,ttl=64/0,frag=no/0xff), packets:426, bytes:41748, used:0.692s, actions:11 skb_priority(0),in_port(11),eth(src=fa:16:3e:99:79:7f,dst=fa:16:3e:49:a8:9b),eth_type(0x0800),ipv4(src=192.168.10.4/0.0.0.0,dst=192.168.10.2/0.0.0.0,proto=1/0,tos=0/0,ttl=64/0,frag=no/0xff), packets:426, bytes:41748, used:0.692s, actions:9 So why the frag flag and the in_port/src mac/dst mac are not masked? At 2015-09-09 14:19:49, "Justin Pettit" <jpet...@nicira.com> wrote: >For OVS 2.0, try the "dpif/disable-megaflows" and "dpif/enable-megaflows" >commands. I would recommend upgrading to at least 2.3 if you are able. > >--Justin > > >> On Sep 8, 2015, at 7:33 PM, openvswitcher <openvswitc...@163.com> wrote: >> >> Thank you for your suggestions but I could not use the command you suggested. >> >> >> >> >> root@comm:~# ovs-appctl upcall/enable-megaflows >> "upcall/enable-megaflows" is not a valid command >> ovs-appctl: ovs-vswitchd: server returned an error >> root@comm:~# ovs-vsctl --version >> ovs-vsctl (Open vSwitch) 2.0.2 >> Compiled May 13 2015 18:49:53 >> >> >> The operation system is Ubuntu 14.04 >> >> >> Could you please tell me how to solve the problem? >> >> >> Thanks. >> >> >> >> At 2015-09-08 23:41:03, "ALeX Wang" <ee07b...@gmail.com> wrote: >> >> Hey, >> >> >> I would encourage you to try it yourself, using `ovs-appctl ofproto/trace` >> command, >> >> >> `ovs-appctl upcall/enable-megaflows` (also disable-megaflows) can be used to >> turn it >> on and off, >> >> >> >> Thanks, >> Alex Wang, >> >> >> On 8 September 2015 at 00:28, openvswitcher <openvswitc...@163.com> wrote: >> Hi,all >> >> >> Could anybody tell me what the megaflow feature actually used for? >> >> >> For example, if I configure one match rule bellow, >> >> >> "in_port=1, dl_vlan=0x20, action set_vlan=0x10, output:2" >> >> >> then, if one packet 'dl_vlan=0x20, src_mac=A, dst_mac=B' arrived. >> >> >> what will be the difference of flow installed in kernel if I enable/disable >> mega-flow? >> >> >> >> >> Looking for your reply. Thanks. >> >> >> >> _______________________________________________ >> dev mailing list >> dev@openvswitch.org >> http://openvswitch.org/mailman/listinfo/dev >> >> >> >> >> >> >> -- >> >> Alex Wang, >> Open vSwitch developer >> _______________________________________________ >> dev mailing list >> dev@openvswitch.org >> http://openvswitch.org/mailman/listinfo/dev > _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev