]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Fix for waterline not setting correctly
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 6 Jul 2018 10:27:57 +0000 (11:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Jul 2018 02:13:06 +0000 (11:13 +0900)
commitee527e2818c7e76c940afa492913f2787985422d
tree05b8999124f4bf423bca870ff176583b9edd174e
parent615ed5f5e5aefa174d6fe4f07697595a4ceaa204
net: hns3: Fix for waterline not setting correctly

The HCLGE_RX_PRIV_EN_B is used to tell the firmware whether
to update the specific waterline value, if the is not set,
the firmware will ignore the value.

This patch fixes by setting the HCLGE_RX_PRIV_EN_B even if
the updated value is zero.

Fixes: 575d84053c84 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c