dpif-netdev: Make internally thread-safe by introducing a global mutex.
authorBen Pfaff <blp@nicira.com>
Tue, 23 Jul 2013 23:56:26 +0000 (16:56 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 25 Jul 2013 16:56:10 +0000 (09:56 -0700)
commit5279f8fdf0d424b2b90a65ffc382d58409728d57
treef51fa419b76aa24151c914be67e95563af8017c6
parent9fafa7963919abd6eb4bd500c399a51c5bb1e971
dpif-netdev: Make internally thread-safe by introducing a global mutex.

This can be improved later but it is the simple thing to do for now.

I marked a couple of races with XXX.  I don't have a really good solution
for these, but I hope to find one.  They may be harmless in practice.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/dpif-netdev.c