From b30791ddf4ccd27fe5d46de16162e24b0aa754c2 Mon Sep 17 00:00:00 2001 From: Selvam Sathappan Periakaruppan Date: Wed, 9 Mar 2022 10:35:52 +0530 Subject: [PATCH] drivers: net: ipq9574: Disable FDB Learning This patch is a temporary WAR to fix timeout issues observed in particular setups during dump collection. This patch disables FDB Learning for ports 1-6. Change-Id: I7987bb0286df129c56a07f1708600f78ebf42039 Signed-off-by: Selvam Sathappan Periakaruppan --- drivers/net/ipq9574/ipq9574_ppe.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/ipq9574/ipq9574_ppe.c b/drivers/net/ipq9574/ipq9574_ppe.c index 6d6e93e25a..ce9af7c072 100644 --- a/drivers/net/ipq9574/ipq9574_ppe.c +++ b/drivers/net/ipq9574/ipq9574_ppe.c @@ -985,12 +985,16 @@ void ipq9574_ppe_provision_init(void) IPQ9574_PPE_PORT_BRIDGE_CTRL_PORT_ISOLATION_BMP | IPQ9574_PPE_PORT_BRIDGE_CTRL_STATION_LRN_EN | IPQ9574_PPE_PORT_BRIDGE_CTRL_NEW_ADDR_LRN_EN); - else + else if (i == 7) ipq9574_ppe_reg_write(IPQ9574_PPE_PORT_BRIDGE_CTRL_OFFSET + (i * 4), IPQ9574_PPE_PORT_BRIDGE_CTRL_PROMISC_EN | IPQ9574_PPE_PORT_BRIDGE_CTRL_PORT_ISOLATION_BMP | IPQ9574_PPE_PORT_BRIDGE_CTRL_STATION_LRN_EN | IPQ9574_PPE_PORT_BRIDGE_CTRL_NEW_ADDR_LRN_EN); + else + ipq9574_ppe_reg_write(IPQ9574_PPE_PORT_BRIDGE_CTRL_OFFSET + (i * 4), + IPQ9574_PPE_PORT_BRIDGE_CTRL_PROMISC_EN | + IPQ9574_PPE_PORT_BRIDGE_CTRL_PORT_ISOLATION_BMP); } /* Global learning */