net: hns3: fix fail to delete tc flower rules during reset issue
authorJijie Shao <shaojijie@huawei.com>
Mon, 18 Sep 2023 07:48:39 +0000 (15:48 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 19 Sep 2023 10:13:08 +0000 (12:13 +0200)
commit1a7be66e4685b8541546222c305cce9710718a88
tree8aa46254b947b336649b4e295b9be99c724f78c3
parentf2ed304922a55690529bcca59678dd92d7466ce8
net: hns3: fix fail to delete tc flower rules during reset issue

Firmware does not respond driver commands during reset
Therefore, rule will fail to delete while the firmware is resetting

So, if failed to delete rule, set rule state to TO_DEL,
and the rule will be deleted when periodic task being scheduled.

Fixes: 0205ec041ec6 ("net: hns3: add support for hw tc offload of tc flower")
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c