]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit3738287c7a54c7b3d7421cc92c22aa5ad9096fd8
tree05b8999124f4bf423bca870ff176583b9edd174e
parent6d0ec65cb5810f9bf08671be008785bb8c84d39f
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: 46a3df9f9718 ("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