Re: [ovs-dev] xlate_select_group() not being invoked for every packet

2014-02-18 Thread Ben Pfaff
e controller is slow). However, it seems to be > working in the opposite way. > > Any insight into this would be really appreciated. > > Thanks!! > > Date: Tue, 18 Feb 2014 09:37:21 -0800 > > From: b...@nicira.com > > To: saeen...@hotmail.com > >

Re: [ovs-dev] xlate_select_group() not being invoked for every packet

2014-02-18 Thread Mohammad Ali Salahuddin
> CC: dev@openvswitch.org > Subject: Re: [ovs-dev] xlate_select_group() not being invoked for every packet > > You can add > ctx->xout->slow |= SLOW_CONTROLLER; > to xlate_select_group(). > > On Tue, Feb 18, 2014 at 09:46:03AM -0700, Mohammad Ali Salahuddin wrote:

Re: [ovs-dev] xlate_select_group() not being invoked for every packet

2014-02-18 Thread Ben Pfaff
You can add ctx->xout->slow |= SLOW_CONTROLLER; to xlate_select_group(). On Tue, Feb 18, 2014 at 09:46:03AM -0700, Mohammad Ali Salahuddin wrote: > Is there a way to turn off this caching? > Thanks! > > > Date: Tue, 18 Feb 2014 08:32:54 -0800 > > Subject: Re: xlate_select_group() not being in

Re: [ovs-dev] xlate_select_group() not being invoked for every packet

2014-02-18 Thread Mohammad Ali Salahuddin
Is there a way to turn off this caching? Thanks! > Date: Tue, 18 Feb 2014 08:32:54 -0800 > Subject: Re: xlate_select_group() not being invoked for every packet > From: b...@nicira.com > To: saeen...@hotmail.com > CC: dev@openvswitch.org > > On Tue, Feb 18, 2014 at 7:31 AM, Mohammad Ali Salahuddin

Re: [ovs-dev] xlate_select_group() not being invoked for every packet

2014-02-18 Thread Ben Pfaff
On Tue, Feb 18, 2014 at 7:31 AM, Mohammad Ali Salahuddin wrote: > Then, I started to a log a message whenever this function was invoked. To my > surprise, the logging revealed that this function is not being invoked for > every packet. > > Is this the expected behavior? Am I missing something? Op

[ovs-dev] xlate_select_group() not being invoked for every packet

2014-02-18 Thread Mohammad Ali Salahuddin
Hello, I am experimenting with the group "select" feature, for which I have modified "group_best_live_bucket()" function in "ofproto-dpif-xlate.c" to stochastically choose a bucket based on bucket weights (changes shown below). My understanding was that every time a packet arrives at the s