On Sat, Aug 03, 2013 at 06:42:09PM -0700, Ethan Jackson wrote:
> This patch makes packet_ins thread safe by handing responsibility for
> them to ofproto-dpif.
> 
> Signed-off-by: Ethan Jackson <et...@nicira.com>

Acked-by: Ben Pfaff <b...@nicira.com>

We have a couple of instances of code like this:
    if (ofproto->n_pins) {
        pins = ofproto->pins;
        list_moved(&pins);
        list_init(&ofproto->pins);
        ofproto->n_pins = 0;
    } else {
        list_init(&pins);
    }
now.  Maybe add a list_steal() or list_swap() or something?
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to