net: dsa: b53: Fix valid setting for MDB entries
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 21 Apr 2020 03:26:52 +0000 (20:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Apr 2020 19:50:41 +0000 (12:50 -0700)
commiteab167f4851a19c514469dfa81147f77e17b5b20
treefd876b4cd12544558f1b5575e1d79473adedc804
parent2e97b0cd1651a270f3a3fcf42115c51f3284c049
net: dsa: b53: Fix valid setting for MDB entries

When support for the MDB entries was added, the valid bit was correctly
changed to be assigned depending on the remaining port bitmask, that is,
if there were no more ports added to the entry's port bitmask, the entry
now becomes invalid. There was another assignment a few lines below that
would override this which would invalidate entries even when there were
still multiple ports left in the MDB entry.

Fixes: 5d65b64a3d97 ("net: dsa: b53: Add support for MDB")
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c