net: bridge: mdb: dump host-joined entries as well
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Sat, 17 Aug 2019 11:22:12 +0000 (14:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Aug 2019 19:36:57 +0000 (12:36 -0700)
commite77b0c84e33c766728991fb637ce0ffe41be2fb1
treef010b9c462431e262e6151ca458be86a46aa6229
parent6545916ed9f4b805515a7546908a6b2ff2d060b5
net: bridge: mdb: dump host-joined entries as well

Currently we dump only the port mdb entries but we can have host-joined
entries on the bridge itself and they should be treated as normal temp
mdbs, they're already notified:
$ bridge monitor all
[MDB]dev br0 port br0 grp ff02::8 temp

The group will not be shown in the bridge mdb output, but it takes 1 slot
and it's timing out. If it's only host-joined then the mdb show output
can even be empty.

After this patch we show the host-joined groups:
$ bridge mdb show
dev br0 port br0 grp ff02::8 temp

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_mdb.c