]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:56:40 +0000 (14:56 +0200)
commitb1b85b3d767e646e2ea3222b92e5c74865d6d1cd
tree3c142ad8fc5ee99ddaa2b73cae31929bfc168947
parentd3f7af41de523dc13792a7497f7f1f3613fc9098
net: hns3: fix fail to delete tc flower rules during reset issue

[ Upstream commit 1a7be66e4685b8541546222c305cce9710718a88 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c