net: hns3: refactor out hclgevf_get_rss_tuple()
authorJian Shen <shenjian15@huawei.com>
Fri, 12 Feb 2021 03:21:07 +0000 (11:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Feb 2021 21:13:15 +0000 (13:13 -0800)
commit73f7767ed0f93cd3269e7f5af75902a351faf5da
treea6923788d7a4e3e5d5eb9dcf787b022084c6cd11
parent405642a15cba0c01d14fc6aa9b8deadf325ab7c3
net: hns3: refactor out hclgevf_get_rss_tuple()

To improve code readability and maintainability, separate
the flow type parsing part and the converting part from
bloated hclgevf_get_rss_tuple().

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/hns3vf/hclgevf_main.c