diff options
author | 2018-03-21 15:49:25 +0800 | |
---|---|---|
committer | 2018-03-22 13:12:02 -0400 | |
commit | cd9d187b07c23df4925c3a47e06367315ba794ca (patch) | |
tree | 91615153853a48706c98b566eeba6a6fc7373909 /drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | |
parent | net: hns3: increase the max time for IMP handle command (diff) | |
download | linux-dev-cd9d187b07c23df4925c3a47e06367315ba794ca.tar.xz linux-dev-cd9d187b07c23df4925c3a47e06367315ba794ca.zip |
net: hns3: change GL update rate
The interrupt coalescing self-adaptive function updates the int_gl every
interrupt. The GL update rate is too faster to get a better new GL value.
This patch changes the GL update rate to every one hundred interrupts.
The GL update rate is defined by HNS3_INT_ADAPT_DOWN_START.
Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3_enet.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h index c313780ef2a7..2fe870b580b1 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h @@ -462,6 +462,8 @@ enum hns3_link_mode_bits { #define HNS3_INT_RL_MAX 0x00EC #define HNS3_INT_RL_ENABLE_MASK 0x40 +#define HNS3_INT_ADAPT_DOWN_START 100 + struct hns3_enet_coalesce { u16 int_gl; u8 gl_adapt_enable; |