OSDN Git Service

bridge: mcast: Move checks out of critical section
authorIdo Schimmel <idosch@nvidia.com>
Tue, 6 Dec 2022 10:58:07 +0000 (12:58 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 8 Dec 2022 04:05:52 +0000 (20:05 -0800)
commit4c1ebc6c1f2196c11cff78832c2604bbcec7d088
tree3f63a534a0435828b488e2f00f07345c8d5d4293
parent3ee5662345f26c3d694e25f3e3b577deaaf31c0f
bridge: mcast: Move checks out of critical section

The checks only require information parsed from the RTM_NEWMDB netlink
message and do not rely on any state stored in the bridge driver.
Therefore, there is no need to perform the checks in the critical
section under the multicast lock.

Move the checks out of the critical section.

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