Re: [ovs-dev] [PATCH v2] datapath: Use percpu allocator for flow-stats.

2013-12-05 Thread Jesse Gross
On Thu, Dec 5, 2013 at 11:42 AM, Pravin B Shelar wrote: > diff --git a/datapath/datapath.c b/datapath/datapath.c > index 1a5bffb..48a2955 100644 > --- a/datapath/datapath.c > +++ b/datapath/datapath.c > @@ -766,6 +760,7 @@ static int ovs_flow_cmd_new_or_set(struct sk_buff *skb, > struct genl_info

[ovs-dev] [PATCH v2] datapath: Use percpu allocator for flow-stats.

2013-12-05 Thread Pravin B Shelar
Use percpu allocator for stats due to objection to stats array. But percpu allocator is not designed for high churn allocation/ deallcation. so we need to avoid allocating percpu flow for short lived flows. One cheaper way to detect flow is by checking if 5-tuple used in RSS are masked or not. if a