]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 5 Sep 2018 12:18:38 +0000 (14:18 +0200)
commitee6b549b86e5540de0a668afd4e9b40cb9cd24e7
tree2316608607c2cc5eab3ef234fc843a127dd04438
parentd3d4b20788eee72dcb1ed5ace7dbee6aafbe65cf
net: hns3: Fix for waterline not setting correctly

BugLink: https://bugs.launchpad.net/bugs/1787477
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>
(cherry picked from commit 3738287c7a54c7b3d7421cc92c22aa5ad9096fd8)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c