]> 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)
commit49fe9b45789e93786b350c7fc9de620670aab7ce
tree8bddf6aedb0e1d10ca9cb86b6b6f5388290807d0
parent3b62e65eac35312d18005924310f36aa76701dbf
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