aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2021-08-05 00:23:54 +0200
committerIngo Molnar <mingo@kernel.org>2022-03-15 12:57:27 +0100
commit5338c605cd0991a5da47d481120bdae882239ae5 (patch)
tree127e62a25830ae9a600c00c6fa338382107f9f31
parent72e92c98cfb87add234b2b6c5a4c23d75cd67768 (diff)
downloadtip-5338c605cd0991a5da47d481120bdae882239ae5.tar.gz
headers/deps: net: Remove unused is_etherdev_addr()
This also decouples <linux/etherdevice_api.h> from <linux/rculist.h>. Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--include/linux/etherdevice_api.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/include/linux/etherdevice_api.h b/include/linux/etherdevice_api.h
index 449ce66fb7f839..444a5ddce2a80f 100644
--- a/include/linux/etherdevice_api.h
+++ b/include/linux/etherdevice_api.h
@@ -126,33 +126,6 @@ static inline void eth_hw_addr_inherit(struct net_device *dst,
eth_hw_addr_set(dst, src->dev_addr);
}
-/**
- * is_etherdev_addr - Tell if given Ethernet address belongs to the device.
- * @dev: Pointer to a device structure
- * @addr: Pointer to a six-byte array containing the Ethernet address
- *
- * Compare passed address with all addresses of the device. Return true if the
- * address if one of the device addresses.
- *
- * Note that this function calls ether_addr_equal_64bits() so take care of
- * the right padding.
- */
-static inline bool is_etherdev_addr(const struct net_device *dev,
- const u8 addr[6 + 2])
-{
- struct netdev_hw_addr *ha;
- bool res = false;
-
- rcu_read_lock();
- for_each_dev_addr(dev, ha) {
- res = ether_addr_equal_64bits(addr, ha->addr);
- if (res)
- break;
- }
- rcu_read_unlock();
- return res;
-}
-
#endif /* __KERNEL__ */
/**