OSDN Git Service

net: hns3: fix an issue for hns3_update_new_int_gl
authorPeng Li <lipeng321@huawei.com>
Sat, 2 Feb 2019 14:39:27 +0000 (22:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:21:18 +0000 (09:21 +0100)
commit320ab115caf10ce500fbdd9ae9b2d322dc80d744
tree6bbddd001fcaff079d1573e1caade5118fa9a224
parent312846d0aebf389af0a67f92d5b12b7dc27ea6b6
net: hns3: fix an issue for hns3_update_new_int_gl

[ Upstream commit 6241e71e7207102ffc733991f7a00f74098d7da0 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c