net: hns3: fix sending pfc frames after reset issue
authorJijie Shao <shaojijie@huawei.com>
Fri, 12 May 2023 10:00:12 +0000 (18:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 May 2023 16:12:23 +0000 (17:12 +0100)
commitf14db07064727dd3bc0906c77a6d2759c1bbb395
treeed88c9589cccec10f2b0a81e5ca2992080f995c2
parent89f6bfb071182f05d7188c255b0e7251c3806f16
net: hns3: fix sending pfc frames after reset issue

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: 35d93a30040c ("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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h