net/ice: fix flow API tunnel rule
authorQiming Yang <qiming.yang@intel.com>
Mon, 15 Jul 2019 09:40:52 +0000 (17:40 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commitf24a1b996fd03dda7f3ecbff60a3974d5afb4266
tree192239ddba04848bf16b46e09f37c22d30a407cc
parent9d69e0bbddc1678b7afaf9cd7386eaef1df64fc6
net/ice: fix flow API tunnel rule

If the input set is outer or inner protocol was distinguished by
checking if the item appears once or twice.

But this is not working when the user doesn't configure the outer
input set, this patch fixes the issue.

Fixes: d76116a4678f ("net/ice: add generic flow API")

Signed-off-by: Qiming Yang <qiming.yang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_generic_flow.c