diff options
author | Wojciech Macek <wma@FreeBSD.org> | 2016-04-08 11:20:56 +0000 |
---|---|---|
committer | Wojciech Macek <wma@FreeBSD.org> | 2016-04-08 11:20:56 +0000 |
commit | d416a6551475b7c0113ed4c66e2b1bfef72667da (patch) | |
tree | eae2f5810599263187ae8e1f1391f5caed433b15 /sys/dev/vnic | |
parent | 3279301186099f2fe0a3b98f05944434d84c056a (diff) | |
download | src-d416a6551475b7c0113ed4c66e2b1bfef72667da.tar.gz src-d416a6551475b7c0113ed4c66e2b1bfef72667da.zip |
Speedup BGX link polling on ARM64
The previous values caused the callout thread stall for 100ms each 2s
if no link is present. Dtrace analysis showed that it has significant
impact on overall interrupt performance.
Decrease these values by a factor of 100.
Obtained from: Semihalf
Sponsored by: Cavium
Reviewed by: zbb
Differential Revision: https://reviews.freebsd.org/D5854
Notes
Notes:
svn path=/head/; revision=297707
Diffstat (limited to 'sys/dev/vnic')
-rw-r--r-- | sys/dev/vnic/thunder_bgx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vnic/thunder_bgx.c b/sys/dev/vnic/thunder_bgx.c index 349475459961..7a3a941049c0 100644 --- a/sys/dev/vnic/thunder_bgx.c +++ b/sys/dev/vnic/thunder_bgx.c @@ -240,7 +240,7 @@ static int bgx_poll_reg(struct bgx *bgx, uint8_t lmac, uint64_t reg, uint64_t mask, boolean_t zero) { - int timeout = 100; + int timeout = 10; uint64_t reg_val; while (timeout) { @@ -250,7 +250,7 @@ bgx_poll_reg(struct bgx *bgx, uint8_t lmac, uint64_t reg, uint64_t mask, if (!zero && (reg_val & mask)) return (0); - DELAY(1000); + DELAY(100); timeout--; } return (ETIMEDOUT); |