ofproto: Lock for vlan splinters only if have them.
authorJarno Rajahalme <jrajahalme@nicira.com>
Fri, 7 Feb 2014 19:34:01 +0000 (11:34 -0800)
committerJarno Rajahalme <jrajahalme@nicira.com>
Wed, 12 Feb 2014 21:58:47 +0000 (13:58 -0800)
commit7614e5d01c3b971c57d825111e412b1182cc04c8
treedc6f5464c8b122e3f6038da6e119032c888eecf4
parentfc24d64d27b745593fe9d5a6c73dfc6dd9da5983
ofproto: Lock for vlan splinters only if have them.

Reading the hmap count for determining if it is empty or not is thread
safe, so avoid locking when not necessary.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/hmap.h
ofproto/ofproto-dpif-xlate.c
ofproto/ofproto-dpif.c