projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
926146a
)
net: dsa: microchip: ksz9477: reduce polling interval for statistics
author
Oleksij Rempel
<o.rempel@pengutronix.de>
Mon, 21 Feb 2022 08:41:29 +0000
(09:41 +0100)
committer
Jakub Kicinski
<kuba@kernel.org>
Wed, 23 Feb 2022 00:54:24 +0000
(16:54 -0800)
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>
drivers/net/dsa/microchip/ksz_common.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/microchip/ksz_common.c
b/drivers/net/dsa/microchip/ksz_common.c
index
27cae9f
..
0531aa6
100644
(file)
--- a/
drivers/net/dsa/microchip/ksz_common.c
+++ b/
drivers/net/dsa/microchip/ksz_common.c
@@
-453,7
+453,7
@@
int ksz_switch_register(struct ksz_device *dev,
}
/* Read MIB counters every 30 seconds to avoid overflow. */
- dev->mib_read_interval = msecs_to_jiffies(
30
000);
+ dev->mib_read_interval = msecs_to_jiffies(
5
000);
/* Start the MIB timer. */
schedule_delayed_work(&dev->mib_read, 0);