bridge: fdb: converge fdb searching functions into one
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Mon, 13 Feb 2017 13:59:09 +0000 (14:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2017 17:41:02 +0000 (12:41 -0500)
commitbfd0aeac52f74bfb44c0974131e44abb33a13e78
tree674273a1c6b5c793891030060abf6bc836e6de62
parent91eaa475e287e7cf87959d68fb273e4f092897f4
bridge: fdb: converge fdb searching functions into one

Before this patch we had 3 different fdb searching functions which was
confusing. This patch reduces all of them to one - fdb_find_rcu(), and
two flavors: br_fdb_find() which requires hash_lock and br_fdb_find_rcu
which requires RCU. This makes it clear what needs to be used, we also
remove two abusers of __br_fdb_get which called it under hash_lock and
replace them with br_fdb_find().

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_device.c
net/bridge/br_fdb.c
net/bridge/br_input.c
net/bridge/br_private.h