mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
net: hns3: don't restore rules when flow director is disabled
[ Upstream commit8edc2285b7] 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:6871af29b3("net: hns3: Add reset handle for flow director") Fixes:c17852a893("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
8f6c74d1a1
commit
7c50af52bf
1 changed files with 4 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue