net/hns3: extract common checks for flow director
authorLijun Ou <oulijun@huawei.com>
Fri, 22 Jan 2021 10:18:44 +0000 (18:18 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:11 +0000 (18:16 +0100)
commit6f22672f3354e1349b6cfa4851b27961d954f2a7
treeb1ce5429c1091ebacf2fd4c6bfe47990a194f9a4
parent893ddac2655c853a47aa4d0f1c190c9ded4ffb29
net/hns3: extract common checks for flow director

When parse flow director with all types, it needs to judge the spec
of item and mask of item for all packet types. The judgement is the
same for all types. Therefore, we move it into the concentrated
location.

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