]> git.baikalelectronics.ru Git - kernel.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)
commitb9895428b178e9f696476dc6c6a95bd5f9462d00
tree9e2722bb63e6512e65e671df8fcb63ae8e7ef2d6
parent6012ebb9ebfbd954ffe3c1759c067920c4821679
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