Commit 287ac42e authored by Jakub Kicinski's avatar Jakub Kicinski Committed by sanglipeng
Browse files

net: remove bond_slave_has_mac_rcu()

stable inclusion
from stable-v5.10.193
commit 615ea2603dc85357ea3140d4e2e86c904d798a14
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I9399M

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=615ea2603dc85357ea3140d4e2e86c904d798a14



--------------------------------

[ Upstream commit 8b0fdcdc ]

No caller since v3.16.

Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Stable-dep-of: e74216b8 ("bonding: fix macvlan over alb bond support")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 004019d1
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -702,20 +702,6 @@ static inline struct slave *bond_slave_has_mac(struct bonding *bond,
	return NULL;
}

/* 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)
{