summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_mdb.c
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2023-02-09 08:18:49 +0100
committerJakub Kicinski <kuba@kernel.org>2023-02-11 04:21:13 +0100
commitccd7f25b5b04869ed0786323940b8d1642459cc0 (patch)
treed39215861bbf1119e50e5fd448bd581b235185cf /net/bridge/br_mdb.c
parentMerge tag 'for-net-next-2023-02-09' of git://git.kernel.org/pub/scm/linux/ker... (diff)
downloadlinux-ccd7f25b5b04869ed0786323940b8d1642459cc0.tar.xz
linux-ccd7f25b5b04869ed0786323940b8d1642459cc0.zip
bridge: mcast: Use correct define in MDB dump
'MDB_PG_FLAGS_PERMANENT' and 'MDB_PERMANENT' happen to have the same value, but the latter is uAPI and cannot change, so use it when dumping an MDB entry. Signed-off-by: Ido Schimmel <idosch@nvidia.com> Acked-by: Nikolay Aleksandrov <razor@blackwall.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
-rw-r--r--net/bridge/br_mdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_mdb.c b/net/bridge/br_mdb.c
index 9f22ebfdc518..13076206e497 100644
--- a/net/bridge/br_mdb.c
+++ b/net/bridge/br_mdb.c
@@ -259,7 +259,7 @@ static int __mdb_fill_info(struct sk_buff *skb,
#endif
} else {
ether_addr_copy(e.addr.u.mac_addr, mp->addr.dst.mac_addr);
- e.state = MDB_PG_FLAGS_PERMANENT;
+ e.state = MDB_PERMANENT;
}
e.addr.proto = mp->addr.proto;
nest_ent = nla_nest_start_noflag(skb,