projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9242da
)
net: ethernet: ti: ale: clean ale tbl on init and intf restart
author
Grygorii Strashko
<grygorii.strashko@ti.com>
Tue, 19 Nov 2019 22:19:13 +0000
(
00:19
+0200)
committer
David S. Miller
<davem@davemloft.net>
Wed, 20 Nov 2019 19:25:23 +0000
(11:25 -0800)
Clean CPSW ALE on init and intf restart (up/down) to avoid reading obsolete
or garbage entries from ALE table.
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw_ale.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ti/cpsw_ale.c
b/drivers/net/ethernet/ti/cpsw_ale.c
index 84025dcc78d59aea0dfad2708b49a319ad478d1e..e7c24396933e93150fba7526b4722737c6cd2aa0 100644
(file)
--- a/
drivers/net/ethernet/ti/cpsw_ale.c
+++ b/
drivers/net/ethernet/ti/cpsw_ale.c
@@
-779,6
+779,7
@@
void cpsw_ale_start(struct cpsw_ale *ale)
void cpsw_ale_stop(struct cpsw_ale *ale)
{
del_timer_sync(&ale->timer);
+ cpsw_ale_control_set(ale, 0, ALE_CLEAR, 1);
cpsw_ale_control_set(ale, 0, ALE_ENABLE, 0);
}
@@
-862,6
+863,7
@@
struct cpsw_ale *cpsw_ale_create(struct cpsw_ale_params *params)
ALE_UNKNOWNVLAN_FORCE_UNTAG_EGRESS;
}
+ cpsw_ale_control_set(ale, 0, ALE_CLEAR, 1);
return ale;
}