* [PATCH linux-5.4.y only] Revert "net: dsa: b53: Fix valid setting for MDB entries"
@ 2022-12-07 7:01 Rafał Miłecki
2022-12-07 21:09 ` Florian Fainelli
0 siblings, 1 reply; 2+ messages in thread
From: Rafał Miłecki @ 2022-12-07 7:01 UTC (permalink / raw)
To: stable
Cc: Florian Fainelli, Andrew Lunn, David S . Miller, Rafał Miłecki
From: Rafał Miłecki <rafal@milecki.pl>
This reverts commit 1fae6eb0fc91d3ecb539e03f9e4dcd1c53ada553.
Upstream commit was a fix for an overlook of setting "ent.is_valid"
twice after 5d65b64a3d97 ("net: dsa: b53: Add support for MDB").
Since MDB support was not backported to stable kernels (it's not a bug
fix) there is nothing to fix there. Backporting this commit resulted in
"env.is_valid" not being set at all.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
drivers/net/dsa/b53/b53_common.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/dsa/b53/b53_common.c b/drivers/net/dsa/b53/b53_common.c
index 825d840cdb8c..1458416f4f91 100644
--- a/drivers/net/dsa/b53/b53_common.c
+++ b/drivers/net/dsa/b53/b53_common.c
@@ -1551,6 +1551,7 @@ static int b53_arl_op(struct b53_device *dev, int op, int port,
memset(&ent, 0, sizeof(ent));
ent.port = port;
+ ent.is_valid = is_valid;
ent.vid = vid;
ent.is_static = true;
memcpy(ent.mac, addr, ETH_ALEN);
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH linux-5.4.y only] Revert "net: dsa: b53: Fix valid setting for MDB entries"
2022-12-07 7:01 [PATCH linux-5.4.y only] Revert "net: dsa: b53: Fix valid setting for MDB entries" Rafał Miłecki
@ 2022-12-07 21:09 ` Florian Fainelli
0 siblings, 0 replies; 2+ messages in thread
From: Florian Fainelli @ 2022-12-07 21:09 UTC (permalink / raw)
To: Rafał Miłecki, stable, Greg KH, Sasha Levin
Cc: Andrew Lunn, David S . Miller, Rafał Miłecki
On 12/6/22 23:01, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
>
> This reverts commit 1fae6eb0fc91d3ecb539e03f9e4dcd1c53ada553.
>
> Upstream commit was a fix for an overlook of setting "ent.is_valid"
> twice after 5d65b64a3d97 ("net: dsa: b53: Add support for MDB").
>
> Since MDB support was not backported to stable kernels (it's not a bug
> fix) there is nothing to fix there. Backporting this commit resulted in
> "env.is_valid" not being set at all.
>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Thanks for catching this!
--
Florian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-07 21:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-07 7:01 [PATCH linux-5.4.y only] Revert "net: dsa: b53: Fix valid setting for MDB entries" Rafał Miłecki
2022-12-07 21:09 ` Florian Fainelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).