diff options
author | Peng Li <lipeng321@huawei.com> | 2019-02-02 17:39:27 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-02 19:24:08 +0300 |
commit | 6241e71e7207102ffc733991f7a00f74098d7da0 (patch) | |
tree | e80480cdacf5be893d229e536bf17f0c8a64bed4 /drivers | |
parent | 9e50dc11b856f19908559bafe1a3eca0ddc632b2 (diff) | |
download | linux-6241e71e7207102ffc733991f7a00f74098d7da0.tar.xz |
net: hns3: fix an issue for hns3_update_new_int_gl
HNS3 supports setting rx-usecs|tx-usecs as 0, but it will not
update dynamically when adaptive-tx or adaptive-rx is enable.
This patch removes the Redundant check.
Fixes: a95e1f8666e9 ("net: hns3: change the time interval of int_gl calculating")
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 1d3f167ee1e4..bc571b3d8ddc 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -2777,7 +2777,7 @@ static bool hns3_get_new_int_gl(struct hns3_enet_ring_group *ring_group) u32 time_passed_ms; u16 new_int_gl; - if (!ring_group->coal.int_gl || !tqp_vector->last_jiffies) + if (!tqp_vector->last_jiffies) return false; if (ring_group->total_packets == 0) { |