diff options
author | Kyungrok Chung <acadx0@gmail.com> | 2021-10-16 20:21:36 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-16 15:02:56 +0100 |
commit | 254ec036db1123b10e23e1412c191a3cf70dce71 (patch) | |
tree | e86be44703da741c3d4ebaaf2d72bc710d8a637f /net/core | |
parent | 4e6e167bc04908c34d11f60cfbf3715eca184536 (diff) | |
download | linux-254ec036db1123b10e23e1412c191a3cf70dce71.tar.bz2 |
net: 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>
Reviewed-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/rtnetlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 2dc1b209ba91..564d24c451af 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -4384,7 +4384,7 @@ static int rtnl_fdb_dump(struct sk_buff *skb, struct netlink_callback *cb) continue; if (br_dev != netdev_master_upper_dev_get(dev) && - !(dev->priv_flags & IFF_EBRIDGE)) + !netif_is_bridge_master(dev)) continue; cops = ops; } |