summaryrefslogtreecommitdiffstats
path: root/include/net/bonding.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-01-26 20:10:59 +0100
committerDavid S. Miller <davem@davemloft.net>2022-01-27 14:53:26 +0100
commit8b0fdcdc3a7d44aff907f0103f5ffb86b12bfe71 (patch)
tree1c9d232da238944ce645aa35d720b813a5a59cf7 /include/net/bonding.h
parentnet: remove linkmode_change_bit() (diff)
downloadlinux-8b0fdcdc3a7d44aff907f0103f5ffb86b12bfe71.tar.xz
linux-8b0fdcdc3a7d44aff907f0103f5ffb86b12bfe71.zip
net: remove bond_slave_has_mac_rcu()
No caller since v3.16. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/bonding.h')
-rw-r--r--include/net/bonding.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/include/net/bonding.h b/include/net/bonding.h
index 83cfd2d70247..7dead855a72d 100644
--- a/include/net/bonding.h
+++ b/include/net/bonding.h
@@ -699,20 +699,6 @@ static inline struct slave *bond_slave_has_mac(struct bonding *bond,
}
/* Caller must hold rcu_read_lock() for read */
-static inline struct slave *bond_slave_has_mac_rcu(struct bonding *bond,
- const u8 *mac)
-{
- struct list_head *iter;
- struct slave *tmp;
-
- bond_for_each_slave_rcu(bond, tmp, iter)
- if (ether_addr_equal_64bits(mac, tmp->dev->dev_addr))
- return tmp;
-
- return NULL;
-}
-
-/* Caller must hold rcu_read_lock() for read */
static inline bool bond_slave_has_mac_rx(struct bonding *bond, const u8 *mac)
{
struct list_head *iter;