mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
net: hns3: fix an issue for hns3_update_new_int_gl
[ Upstream commit6241e71e72] 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:a95e1f8666("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
312846d0ae
commit
320ab115ca
@@ -2366,7 +2366,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) {
|
||||
|
||||
Reference in New Issue
Block a user