mirror of https://gitee.com/openkylin/linux.git
bf655ba212
ocelot_set_ageing_time has 2 callers:
- felix_set_ageing_time: from drivers/net/dsa/ocelot/felix.c
- ocelot_port_attr_ageing_set: from drivers/net/ethernet/mscc/ocelot.c
The issue described in the fixed commit below actually happened for the
felix_set_ageing_time code path only, since ocelot_port_attr_ageing_set
was already dividing by 1000. So to make both paths symmetrical (and to
fix addresses getting aged way too fast on Ocelot), stop dividing by
1000 at caller side altogether.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ocelot.c | ||
ocelot.h | ||
ocelot_ace.c | ||
ocelot_ace.h | ||
ocelot_board.c | ||
ocelot_flower.c | ||
ocelot_io.c | ||
ocelot_police.c | ||
ocelot_police.h | ||
ocelot_ptp.h | ||
ocelot_qs.h | ||
ocelot_regs.c | ||
ocelot_rew.h | ||
ocelot_s2.h | ||
ocelot_tc.c | ||
ocelot_tc.h |