diff options
author | Nikolay Aleksandrov <nikolay@nvidia.com> | 2021-07-21 17:01:27 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-21 14:34:47 -0700 |
commit | 58d913a32664fae5ac2ccd9a9c23b8e7037df740 (patch) | |
tree | b1ce4e61eab0c694ca587ffb4395284feeef034b /net/bridge/br_multicast.c | |
parent | 6567cb438a51016f9f2152cb966f5715dc3c3c7b (diff) | |
download | linux-58d913a32664fae5ac2ccd9a9c23b8e7037df740.tar.gz linux-58d913a32664fae5ac2ccd9a9c23b8e7037df740.tar.bz2 linux-58d913a32664fae5ac2ccd9a9c23b8e7037df740.zip |
net: bridge: multicast: add context support for host-joined groups
Adding bridge multicast context support for host-joined groups is easy
because we only need the proper timer value. We pass the already chosen
context and use its timer value.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_multicast.c')
-rw-r--r-- | net/bridge/br_multicast.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 214d1bf854ad..470f1ec3b579 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -1312,7 +1312,8 @@ struct net_bridge_port_group *br_multicast_new_port_group( return p; } -void br_multicast_host_join(struct net_bridge_mdb_entry *mp, bool notify) +void br_multicast_host_join(const struct net_bridge_mcast *brmctx, + struct net_bridge_mdb_entry *mp, bool notify) { if (!mp->host_joined) { mp->host_joined = true; @@ -1325,8 +1326,7 @@ void br_multicast_host_join(struct net_bridge_mdb_entry *mp, bool notify) if (br_group_is_l2(&mp->addr)) return; - mod_timer(&mp->timer, - jiffies + mp->br->multicast_ctx.multicast_membership_interval); + mod_timer(&mp->timer, jiffies + brmctx->multicast_membership_interval); } void br_multicast_host_leave(struct net_bridge_mdb_entry *mp, bool notify) @@ -1363,7 +1363,7 @@ __br_multicast_add_group(struct net_bridge_mcast *brmctx, return ERR_CAST(mp); if (!pmctx) { - br_multicast_host_join(mp, true); + br_multicast_host_join(brmctx, mp, true); goto out; } |