]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Feb 2019 16:24:08 +0000 (08:24 -0800)
commit4eb5c7f16c2825634ceda156c18b232b62ecd3b8
treee80480cdacf5be893d229e536bf17f0c8a64bed4
parent1f257d88cd15c4b189297c958580670e43438f6b
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: ba2829e66e11 ("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>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c