net/hns3: refactor flow checks into own functions
authorLijun Ou <oulijun@huawei.com>
Fri, 22 Jan 2021 10:18:42 +0000 (18:18 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:11 +0000 (18:16 +0100)
commit0867543f8285c43b520045614e66eb0ed93e046b
treee3e9072b690bb003e62ef9852e2a0b833f139d02
parent040c4fb8cec4953939f435b3f984ed0e2d5120b1
net/hns3: refactor flow checks into own functions

Here moves some judgement conditions to a separated function
for parsing IPv4 hdr and TCP hdr in hns3_parse_normal function.
Also, move the check of the selected input tuple of RSS to a
separated functions named hns3_rss_input_tuple_supported
in order to enhance scalability and complexity.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
drivers/net/hns3/hns3_flow.c