]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Adjust timer based on ethtool stats-block-usecs settings.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 5 Aug 2018 20:51:47 +0000 (16:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Aug 2018 00:08:25 +0000 (17:08 -0700)
commit8c7139de07622d1c72ebad436ee167cc027be872
treebd6a7db855eef15d642846ce649663b51b581f2f
parent2b458d47fe3ba9bcfff4f50e066d8b063bd82151
bnxt_en: Adjust timer based on ethtool stats-block-usecs settings.

The driver gathers statistics using 2 mechanisms.  Some stats are DMA'ed
directly from hardware and others are polled from the driver's timer.
Currently, we only adjust the DMA frequency based on the ethtool
stats-block-usecs setting.  This patch adjusts the driver's timer
frequency as well to make everything consistent.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c