]> 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)
commit085a21c232f61b29c688b476485c17b86248f163
tree9e2722bb63e6512e65e671df8fcb63ae8e7ef2d6
parent39dca37c31747a47431881c9e66268022711e337
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