Skip to contentSkip to conversation

mscc: Configured MAC entries should be locked.

PATCH In review Steen Hegelund 3 participants 3 messages Dec 20, 2018 – Dec 21, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mscc: Configured MAC entries should be locked.

From: "Allan W. Nielsen" <[email protected]>

The MAC table in Ocelot supports auto aging (normal) and static entries. MAC entries that is manually configured should be static and not subject to aging.

---
 drivers/net/ethernet/mscc/ocelot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mscc/ocelot.c +1 -1
index 3238b9ee42f3..c84074fa4c95 100644
@@ -747,7 +747,7 @@ static int ocelot_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
 	}
 
 	return ocelot_mact_learn(ocelot, port->chip_port, addr, vid,
-				 ENTRYTYPE_NORMAL);
+				 ENTRYTYPE_LOCKED);
 }
 
 static int ocelot_fdb_del(struct ndmsg *ndm, struct nlattr *tb[],
Signature · 1 line
2.20.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 9 lines · Steen Hegelund

From: "Allan W. Nielsen" <[email protected]>

The MAC table in Ocelot supports auto aging (normal) and static entries. MAC entries that is manually configured should be static and not subject to aging.

Fixes a556c76adc05 ("net: mscc: Add initial Ocelot switch support")

Andrew

maintainer
#2 lore raw
In reply to Steen Hegelund

From: Steen Hegelund <[email protected]>
Date: Thu, 20 Dec 2018 09:37:17 +0100

Quoted 9 lines

From: "Allan W. Nielsen" <[email protected]>

The MAC table in Ocelot supports auto aging (normal) and static entries. MAC entries that is manually configured should be static and not subject to aging.

Applied and queued up for -stable, thanks.