bridge: split rcu and no-rcu cases of fdb lookup
commit664de48bb6c4e167fcdf92a4bddf880030fbfbb3
authorstephen hemminger <shemminger@vyatta.com>
Mon, 4 Apr 2011 14:03:29 +0000 (4 14:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Apr 2011 00:22:26 +0000 (4 17:22 -0700)
tree3da0ad964f1ad79f567ed04a5e5b32c201687787
parent7cd8861ab0d907430bbea0af93bc41aee0437efc
bridge: split rcu and no-rcu cases of fdb lookup

In some cases, look up of forward database entry is done with RCU;
and for others no RCU is needed because of locking. Split the two
cases into two differnt loops (and take off inline).

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_fdb.c