net: hns3: refine the flow director handle
authorJian Shen <shenjian15@huawei.com>
Fri, 24 May 2019 11:19:46 +0000 (19:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 May 2019 20:24:56 +0000 (13:24 -0700)
commit4412288757064b664499af9becd028c949cd53e3
tree93bd84d0ae56ed151952a6d52f27bc74a7300877
parentffab9691bcb2fe2594f4c38bfceb4d9685b93b87
net: hns3: refine the flow director handle

In order to be compatible with aRFS rules, this patch adds
spin_lock for flow director rule adding, deleting, querying,
and packages the rule configuration.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h