mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
net: ethernet: ti: ale: clean ale tbl on init and intf restart
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>
This commit is contained in:
parent
b9242da6f6
commit
7fe579dfb9
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue