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)
commita95e1f8666e910f43f47b5b1bec2cdf25f513f74
tree50155258c8510a2f0d0e94eedafcac7f799af457
parentcd9d187b07c23df4925c3a47e06367315ba794ca
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