]> 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)
commitc070f0d66baea9224870f4962b8a8a966c9c21c2
tree05b8999124f4bf423bca870ff176583b9edd174e
parent9a1ff9ac21eff521f51723acf49d7827a47e8b30
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: 22c0e2ce21dd ("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