net: bridge: use netif_is_bridge_port()
Replace the br_port_exists() macro with its twin from netdevice.h CC: Roopa Prabhu <roopa@cumulusnetworks.com> CC: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
acb10eac51
commit
35f861e3c5
@@ -2189,7 +2189,7 @@ int br_multicast_list_adjacent(struct net_device *dev,
|
||||
int count = 0;
|
||||
|
||||
rcu_read_lock();
|
||||
if (!br_ip_list || !br_port_exists(dev))
|
||||
if (!br_ip_list || !netif_is_bridge_port(dev))
|
||||
goto unlock;
|
||||
|
||||
port = br_port_get_rcu(dev);
|
||||
@@ -2236,7 +2236,7 @@ bool br_multicast_has_querier_anywhere(struct net_device *dev, int proto)
|
||||
bool ret = false;
|
||||
|
||||
rcu_read_lock();
|
||||
if (!br_port_exists(dev))
|
||||
if (!netif_is_bridge_port(dev))
|
||||
goto unlock;
|
||||
|
||||
port = br_port_get_rcu(dev);
|
||||
@@ -2272,7 +2272,7 @@ bool br_multicast_has_querier_adjacent(struct net_device *dev, int proto)
|
||||
bool ret = false;
|
||||
|
||||
rcu_read_lock();
|
||||
if (!br_port_exists(dev))
|
||||
if (!netif_is_bridge_port(dev))
|
||||
goto unlock;
|
||||
|
||||
port = br_port_get_rcu(dev);
|
||||
|
Reference in New Issue
Block a user