mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-18 21:25:11 +00:00
net: bridge: mcast: remove unused br_ip_equal function
Since the mcast conversion to rhashtable this function has been unused, so remove it. Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
448a24130b
commit
e177163d36
1 changed files with 0 additions and 17 deletions
|
@ -65,23 +65,6 @@ static void br_ip6_multicast_leave_group(struct net_bridge *br,
|
||||||
__u16 vid, const unsigned char *src);
|
__u16 vid, const unsigned char *src);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline int br_ip_equal(const struct br_ip *a, const struct br_ip *b)
|
|
||||||
{
|
|
||||||
if (a->proto != b->proto)
|
|
||||||
return 0;
|
|
||||||
if (a->vid != b->vid)
|
|
||||||
return 0;
|
|
||||||
switch (a->proto) {
|
|
||||||
case htons(ETH_P_IP):
|
|
||||||
return a->u.ip4 == b->u.ip4;
|
|
||||||
#if IS_ENABLED(CONFIG_IPV6)
|
|
||||||
case htons(ETH_P_IPV6):
|
|
||||||
return ipv6_addr_equal(&a->u.ip6, &b->u.ip6);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct net_bridge_mdb_entry *br_mdb_ip_get_rcu(struct net_bridge *br,
|
static struct net_bridge_mdb_entry *br_mdb_ip_get_rcu(struct net_bridge *br,
|
||||||
struct br_ip *dst)
|
struct br_ip *dst)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue