Re: [ovs-dev] [PATCH 3/3] ofproto-dpif: Handle learn action flow mods asynchronously.

2013-08-02 Thread Ethan Jackson
> ovs_mutex_lock(&ofproto->flow_mod_mutex); > if (ofproto->n_flow_mods) { > flow_mods = ofproto->flow_mods; > list_moved(&flow_mods); > list_init(&ofproto->flow_mods); > ofproto->n_flow_mods--; > } else { > list_init(&flow_mods); > } > ovs

Re: [ovs-dev] [PATCH 3/3] ofproto-dpif: Handle learn action flow mods asynchronously.

2013-08-02 Thread Ben Pfaff
On Thu, Aug 01, 2013 at 03:55:47PM -0700, Ethan Jackson wrote: > Once we have multiple threads running, having each execute flow mods > created by the learn action won't be tenable. It essentially will > require us to make the core ofproto module thread safe, which is not > the direction we want t

[ovs-dev] [PATCH 3/3] ofproto-dpif: Handle learn action flow mods asynchronously.

2013-08-01 Thread Ethan Jackson
Once we have multiple threads running, having each execute flow mods created by the learn action won't be tenable. It essentially will require us to make the core ofproto module thread safe, which is not the direction we want to go. This patch punts on the problem by handing flow mods to ofproto-