OSDN Git Service

net: dsa: sja1105: fix ucast/bcast flooding always remaining enabled
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 4 Mar 2021 10:56:54 +0000 (12:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Mar 2021 22:19:01 +0000 (14:19 -0800)
commit6a5166e07c029182ee0e15c1a97b08c3179b2aaf
tree366a69e9a8ecb1ca1f6ae1949e3ac31371e72579
parent053d8ad10d585adf9891fcd049637536e2fe9ea7
net: dsa: sja1105: fix ucast/bcast flooding always remaining enabled

In the blamed patch I managed to introduce a bug while moving code
around: the same logic is applied to the ucast_egress_floods and
bcast_egress_floods variables both on the "if" and the "else" branches.

This is clearly an unintended change compared to how the code used to be
prior to that bugfix, so restore it.

Fixes: 7f7ccdea8c73 ("net: dsa: sja1105: fix leakage of flooded frames outside bridging domain")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c