]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:33:10 +0000 (16:33 +0200)
commitc2ad9b43ee438093b6d78025502160291410ac1c
tree900210b3d33f0b6f9367d2f42d2ea8aacb4f29a3
parent389342fea93995636d1440b445df015b0ac68d99
net: dsa: b53: Fix valid setting for MDB entries

[ Upstream commit 4ecf50da3563895b6dd97ecb3dcdf206e30f3647 ]

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: 6c3a6ef8f290 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/dsa/b53/b53_common.c