bridge: mcast: Use correct define in MDB dump
authorIdo Schimmel <idosch@nvidia.com>
Thu, 9 Feb 2023 07:18:49 +0000 (09:18 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 Feb 2023 03:21:13 +0000 (19:21 -0800)
'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>
net/bridge/br_mdb.c

index 9f22ebfdc5180d6e3097b9eee0139da5802b1500..13076206e49768b046a78d3ba4c384b61fef1059 100644 (file)
@@ -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,