> 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_mutex_unlock(&ofproto->flow_mod_mutex);
Good Idea, I just changed it to do ofproto->n_flow_mods = 0. I'll
merge shortly, thanks.
Ethan
X-CudaMail-Whitelist-To: [email protected]
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev