From: Steen Hegelund Subject: [PATCH v2 net] mscc: Configured MAC entries should be locked. Date: Thu, 20 Dec 2018 09:37:17 +0100 Message-ID: <20181220083717.3752-1-steen.hegelund@microchip.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Cc: "Allan W. Nielsen" , Steen Hegelund To: , Return-path: Received: from mail-eopbgr820078.outbound.protection.outlook.com ([40.107.82.78]:54967 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728585AbeLTIwS (ORCPT ); Thu, 20 Dec 2018 03:52:18 -0500 Sender: netdev-owner@vger.kernel.org List-ID: From: "Allan W. Nielsen" 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. Signed-off-by: Allan Nielsen Reviewed-by: Steen Hegelund Signed-off-by: Steen Hegelund --- drivers/net/ethernet/mscc/ocelot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mscc/ocelot.c b/drivers/net/ethernet/mscc/ocelot.c index 3238b9ee42f3..c84074fa4c95 100644 --- a/drivers/net/ethernet/mscc/ocelot.c +++ b/drivers/net/ethernet/mscc/ocelot.c @@ -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[], -- 2.20.1