Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: dsa: microchip: ksz9477: reduce polling interval for statistics

30 seconds is too long interval especially if it used with ip -s l.
Reduce polling interval to 5 sec.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.kernel.org/r/20220221084129.3660124-1-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Oleksij Rempel and committed by
Jakub Kicinski
12c740c8 926146a8

+1 -1
+1 -1
drivers/net/dsa/microchip/ksz_common.c
··· 453 453 } 454 454 455 455 /* Read MIB counters every 30 seconds to avoid overflow. */ 456 - dev->mib_read_interval = msecs_to_jiffies(30000); 456 + dev->mib_read_interval = msecs_to_jiffies(5000); 457 457 458 458 /* Start the MIB timer. */ 459 459 schedule_delayed_work(&dev->mib_read, 0);