]> www.infradead.org Git - nvme.git/commit
net: hns3: add judge fd ability for sync and clear process of flow director
authorGuangbin Huang <huangguangbin2@huawei.com>
Fri, 16 Sep 2022 02:38:03 +0000 (10:38 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 Sep 2022 21:32:21 +0000 (14:32 -0700)
commit236b8f5dc75d59ce970d1c1368f2935bcc6ca224
tree9e2722bb63e6512e65e671df8fcb63ae8e7ef2d6
parent09431ed8de874881e2d5d430042d718ae074d371
net: hns3: add judge fd ability for sync and clear process of flow director

Currently, driver will always clear user defined field of flow director
in uninit process and sync flow director table in periodic task. However,
if hardware does not support flow director driver should not do those
processes, so add fd ability judgement.

The fd ability judgement in function hclge_clear_fd_rules_in_list() is
redundant, so delete it.

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c