bridge: mcast: Avoid arming group timer when (S, G) corresponds to a source
authorIdo Schimmel <idosch@nvidia.com>
Sat, 10 Dec 2022 14:56:27 +0000 (16:56 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 12 Dec 2022 23:33:37 +0000 (15:33 -0800)
commit079afd66161bbbde14ed9f207f7fe6170f5b37b3
treedba4b5b1eeceac8a055ddaee0d38b5301f45c521
parenta01ecb1712ddbcd41360ad0c554b460adbac0528
bridge: mcast: Avoid arming group timer when (S, G) corresponds to a source

User space will soon be able to install a (*, G) with a source list,
prompting the creation of a (S, G) entry for each source.

In this case, the group timer of the (S, G) entry should never be set.

Solve this by adding a new field to the MDB configuration structure that
denotes whether the (S, G) corresponds to a source or not.

The field will be set in a subsequent patch where br_mdb_add_group_sg()
is called in order to create a (S, G) entry for each user provided
source.

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
net/bridge/br_private.h