net: hns3: change GL update rate
authorFuyun Liang <[email protected]>
Wed, 21 Mar 2018 07:49:25 +0000 (15:49 +0800)
committerDavid S. Miller <[email protected]>
Thu, 22 Mar 2018 17:12:02 +0000 (13:12 -0400)
commitcd9d187b07c23df4925c3a47e06367315ba794ca
tree91615153853a48706c98b566eeba6a6fc7373909
parentd458c815e7901758651f2357153518d1eb0a95d0
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 <[email protected]>
Signed-off-by: Peng Li <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h