net: hns3: fix sending pfc frames after reset issue

[ Upstream commit f14db07064 ]

To prevent the system from abnormally sending PFC frames after an
abnormal reset. The hns3 driver notifies the firmware to disable pfc
before reset.

Fixes: 35d93a3004 ("net: hns3: adjust the process of PF reset")
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: Hao Lan <lanhao@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Jijie Shao 2023-05-12 18:00:12 +08:00 • committed by Greg Kroah-Hartman
commit 2a06c5ab7b
3 changed files with 16 additions and 8 deletions