]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: change the time interval of int_gl calculating
authorFuyun Liang <liangfuyun1@huawei.com>
Wed, 21 Mar 2018 07:49:26 +0000 (15:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 17:12:02 +0000 (13:12 -0400)
commitba2829e66e11e97a4a44090d5597271e2e6c5dae
tree50155258c8510a2f0d0e94eedafcac7f799af457
parent0488278c4ee593fdad6df82ab0265b1d8c725cf0
net: hns3: change the time interval of int_gl calculating

Since we change the update rate of int_gl from every interrupt to every
one hundred interrupts, the old way to get time interval by int_gl value
is not accurate. This patch calculates the time interval using the jiffies
value.

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>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h