]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: bridge: mcast: factor out common allow/block EHT handling
authorNikolay Aleksandrov <nikolay@nvidia.com>
Mon, 15 Mar 2021 17:13:42 +0000 (19:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Mar 2021 18:57:57 +0000 (11:57 -0700)
commite09cf582059ef4c1e5c496d6494fe4e26482530f
tree5056e1dd6420ad0f3381c7bcd73af225afc9037d
parent6aa2c371c729a3e3f8c7d4e08e0ff10e706b81d3
net: bridge: mcast: factor out common allow/block EHT handling

We hande EHT state change for ALLOW messages in INCLUDE mode and for
BLOCK messages in EXCLUDE mode similarly - create the new set entries
with the proper filter mode. We also handle EHT state change for ALLOW
messages in EXCLUDE mode and for BLOCK messages in INCLUDE mode in a
similar way - delete the common entries (current set and new set).
Factor out all the common code as follows:
 - ALLOW/INCLUDE, BLOCK/EXCLUDE: call __eht_create_set_entries()
 - ALLOW/EXCLUDE, BLOCK/INCLUDE: call __eht_del_common_set_entries()

The set entries creation can be reused in __eht_inc_exc() as well.

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