]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: hns3: don't restore rules when flow director is disabled
authorJian Shen <shenjian15@huawei.com>
Thu, 20 Dec 2018 03:52:04 +0000 (11:52 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Jan 2019 09:28:55 +0000 (09:28 +0000)
commit626cb23bf9bedf4ec21da4feb705046205bc0712
tree75e3d19b9bb5ce3c65cf673b43d83e70674f47ce
parent9eb3eb33e92b81f1dcf945467fba54ca75808b75
net: hns3: don't restore rules when flow director is disabled

BugLink: https://bugs.launchpad.net/bugs/1810457
When user disables flow director, all the rules will be disabled. But
when reset happens, it will restore all the rules again. It's not
reasonable. This patch fixes it by add flow director status check before
restore fules.

Fixes: 6871af29b3ab ("net: hns3: Add reset handle for flow director")
Fixes: c17852a8932f ("net: hns3: Add support for enable/disable flow director")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 8edc2285b7285c5fbffe438dc8113260d3e76656)
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