ofproto-dpif: Use ovs_refcount_try_ref_rcu().
authorJarno Rajahalme <jrajahalme@nicira.com>
Mon, 7 Jul 2014 20:18:46 +0000 (13:18 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Mon, 7 Jul 2014 20:23:54 +0000 (13:23 -0700)
commitf5d16e557ffe376a23ac3fd2cf1a7bcab2013ec2
treefb1d18aea29e64ae7657b6c6b31413c1b13ef3e3
parent24f8381214966e90819bf4a9ecabf076cbfc1b08
ofproto-dpif: Use ovs_refcount_try_ref_rcu().

This is a prerequisite step in making the classifier lookups lockless.
If taking a reference fails, we do the lookup again, as a new (lower
priority) rule may now match instead.

Also remove unwildcarding dl_type and nw_frag, as these are already
taken care of by xlate_actions().

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