bridge: mcast: Simplify MDB entry creation
authorIdo Schimmel <idosch@nvidia.com>
Tue, 18 Oct 2022 06:40:01 +0000 (09:40 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2022 13:01:08 +0000 (14:01 +0100)
commitd1942cd47dbdfb5a6187f660418a4e1be38d1312
treecce58755e1af9f001006e3ab54ce1549e0148477
parent262985fad1bd819d1323c6dbd72a8d9ed1c6090c
bridge: mcast: Simplify MDB entry creation

Before creating a new MDB entry, br_multicast_new_group() will call
br_mdb_ip_get() to see if one exists and return it if so.

Therefore, simply call br_multicast_new_group() and omit the call to
br_mdb_ip_get().

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_mdb.c