]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: mcast: remove unreachable EHT code
authorNikolay Aleksandrov <nikolay@nvidia.com>
Mon, 15 Mar 2021 17:13:41 +0000 (19:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Mar 2021 18:57:57 +0000 (11:57 -0700)
commit189849b7aa7a9c806db6f6deef0b898ca51bd193
tree8bddf6aedb0e1d10ca9cb86b6b6f5388290807d0
parentc30de49364edbf12b393974d6c5e06620bf3d469
net: bridge: mcast: remove unreachable EHT code

In the initial EHT versions there were common functions which handled
allow/block messages for both INCLUDE and EXCLUDE modes, but later they
were separated. It seems I've left some common code which cannot be
reached because the filter mode is checked before calling the respective
functions, i.e. the host filter is always in EXCLUDE mode when using
__eht_allow_excl() and __eht_block_excl() thus we can drop the host_excl
checks inside and simplify the code a bit.

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