net: hns3: refactor out hclge_fd_get_tuple()
authorJian Shen <shenjian15@huawei.com>
Mon, 22 Mar 2021 03:51:57 +0000 (11:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Mar 2021 20:04:18 +0000 (13:04 -0700)
commit74b755d1dbf1c4ff6f0cc4513e573eb15c0e7dfc
tree079ec3f28e6d57028ae30dca2cf020d842cac78b
parent5f2b1238b33c38478ddc55536b65277b30f5d456
net: hns3: refactor out hclge_fd_get_tuple()

The process of function hclge_fd_get_tuple() is complex and
prolix. To make it more readable, extract the process of each
flow-type tuple to a single function.

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