Re: [ovs-dev] About the Mega Flow

2015-09-09 Thread Ben Pfaff
On Wed, Sep 09, 2015 at 03:25:51PM +0800, openvswitcher wrote: > I am reading the source code of this logic but it is really hard to > understand every handling details. You should read the paper that describes how megaflows work: https://www.usenix.org/conference/nsdi15/technical-session

Re: [ovs-dev] About the Mega Flow

2015-09-09 Thread openvswitcher
Thank you for your reply. I am reading the source code of this logic but it is really hard to understand every handling details. static void xlate_actions__(struct xlate_in *xin, struct xlate_out *xout) (...skip...) flow_wildcards_init_catchall(wc); memset(&wc->masks.in_port, 0xff, s

Re: [ovs-dev] About the Mega Flow

2015-09-09 Thread Justin Pettit
> On Sep 8, 2015, at 11:54 PM, openvswitcher wrote: > > 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

Re: [ovs-dev] About the Mega Flow

2015-09-09 Thread openvswitcher
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

Re: [ovs-dev] About the Mega Flow

2015-09-08 Thread Justin Pettit
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 wrote: > > Thank you for your suggestions but I could not use the command you suggested. > >

Re: [ovs-dev] About the Mega Flow

2015-09-08 Thread openvswitcher
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 Compi

Re: [ovs-dev] About the Mega Flow

2015-09-08 Thread ALeX Wang
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 wrote: > Hi,all > > > Could anybody tell me