kernel: backport b53/bcm_sf2 changes from v5.5
[openwrt/staging/pepe2k.git] / target / linux / generic / backport-5.4 / 702-Revert-net-dsa-b53-Fix-valid-setting-for-MDB-entries.patch
1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
2 Date: Wed, 7 Dec 2022 07:57:58 +0100
3 Subject: [PATCH] Revert "net: dsa: b53: Fix valid setting for MDB entries"
4 MIME-Version: 1.0
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
7
8 This reverts commit 1fae6eb0fc91d3ecb539e03f9e4dcd1c53ada553.
9
10 Upstream commit was a fix for an overlook of setting "ent.is_valid"
11 twice after 5d65b64a3d97 ("net: dsa: b53: Add support for MDB").
12
13 Since MDB support was not backported to stable kernels (it's not a bug
14 fix) there is nothing to fix there. Backporting this commit resulted in
15 "env.is_valid" not being set at all.
16
17 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
18 ---
19 drivers/net/dsa/b53/b53_common.c | 1 +
20 1 file changed, 1 insertion(+)
21
22 --- a/drivers/net/dsa/b53/b53_common.c
23 +++ b/drivers/net/dsa/b53/b53_common.c
24 @@ -1551,6 +1551,7 @@ static int b53_arl_op(struct b53_device
25
26 memset(&ent, 0, sizeof(ent));
27 ent.port = port;
28 + ent.is_valid = is_valid;
29 ent.vid = vid;
30 ent.is_static = true;
31 memcpy(ent.mac, addr, ETH_ALEN);