net/ice: refactor flow pattern parser
authorZhirun Yan <zhirun.yan@intel.com>
Tue, 2 Mar 2021 02:54:04 +0000 (10:54 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 5 Mar 2021 08:46:01 +0000 (09:46 +0100)
commit1b71ed2cdd5d25511be9d5e3a75638017212b298
tree72abb3e93cbd955a7e8f2c87018259c56b48f2e0
parent387e72ed7f7f5d5336c3aafe50bb2b81f2c73080
net/ice: refactor flow pattern parser

Distinguish inner/outer input_set. And avoid too many nested
conditionals in each type's parser. input_set_o is used for
tunnel outer fields or non-tunnel fields , input_set_i is only
used for inner fields.

For GTPU, store the outer IP fields in inner part to align with
shared code behavior.

Signed-off-by: Zhirun Yan <zhirun.yan@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_fdir_filter.c