OSDN Git Service

net: hns3: refactor out hclge_get_rss_tuple()
authorJian Shen <shenjian15@huawei.com>
Fri, 12 Feb 2021 03:21:06 +0000 (11:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Feb 2021 21:13:15 +0000 (13:13 -0800)
commit405642a15cba0c01d14fc6aa9b8deadf325ab7c3
tree77ac266e67bf96a84280cb605345cd533695ad71
parent88936e320c1a9971b6b78a38e6bf737e43744f5e
net: hns3: refactor out hclge_get_rss_tuple()

To improve code readability and maintainability, separate
the flow type parsing part and the converting part from
bloated hclge_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/hns3pf/hclge_main.c