OSDN Git Service

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)
commit6aa2c371c729a3e3f8c7d4e08e0ff10e706b81d3
tree8bddf6aedb0e1d10ca9cb86b6b6f5388290807d0
parent5a30833b9a16f8d1aa15de06636f9317ca51f9df
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