blob: f77aee1a8739e9c98b459625ef3e826c69944e35 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From eab167f4851a19c514469dfa81147f77e17b5b20 Mon Sep 17 00:00:00 2001
2From: Florian Fainelli <f.fainelli@gmail.com>
3Date: Mon, 20 Apr 2020 20:26:52 -0700
4Subject: [PATCH] net: dsa: b53: Fix valid setting for MDB entries
5
6When support for the MDB entries was added, the valid bit was correctly
7changed to be assigned depending on the remaining port bitmask, that is,
8if there were no more ports added to the entry's port bitmask, the entry
9now becomes invalid. There was another assignment a few lines below that
10would override this which would invalidate entries even when there were
11still multiple ports left in the MDB entry.
12
13Fixes: 5d65b64a3d97 ("net: dsa: b53: Add support for MDB")
14Reviewed-by: Andrew Lunn <andrew@lunn.ch>
15Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
16Signed-off-by: David S. Miller <davem@davemloft.net>
17---
18 drivers/net/dsa/b53/b53_common.c | 1 -
19 1 file changed, 1 deletion(-)
20
21--- a/drivers/net/dsa/b53/b53_common.c
22+++ b/drivers/net/dsa/b53/b53_common.c
23@@ -1600,7 +1600,6 @@ static int b53_arl_op(struct b53_device
24 ent.is_valid = !!(ent.port);
25 }
26
27- ent.is_valid = is_valid;
28 ent.vid = vid;
29 ent.is_static = true;
30 ent.is_age = false;