Repository : ssh://git@diktynna/batman-adv
On branch : master
commit 898d6e09fc0a181067bdf3624f013905d4f04905 Author: Kyungrok Chung acadx0@gmail.com Date: Sat Oct 16 20:21:36 2021 +0900
batman-adv: make use of helper netif_is_bridge_master()
Make use of netdev helper functions to improve code readability. Replace 'dev->priv_flags & IFF_EBRIDGE' with netif_is_bridge_master(dev).
Signed-off-by: Kyungrok Chung acadx0@gmail.com Signed-off-by: Sven Eckelmann sven@narfation.org
898d6e09fc0a181067bdf3624f013905d4f04905 net/batman-adv/multicast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/batman-adv/multicast.c b/net/batman-adv/multicast.c index a3b6658e..433901dc 100644 --- a/net/batman-adv/multicast.c +++ b/net/batman-adv/multicast.c @@ -89,7 +89,7 @@ static struct net_device *batadv_mcast_get_bridge(struct net_device *soft_iface) rcu_read_lock(); do { upper = netdev_master_upper_dev_get_rcu(upper); - } while (upper && !(upper->priv_flags & IFF_EBRIDGE)); + } while (upper && !netif_is_bridge_master(upper));
dev_hold(upper); rcu_read_unlock();