If the capability of a PTYPE within a specific package could be negotiated, no need to maintain a different PTYPE list for each type of the package when parsing PTYPE. So refactor the PTYPE parsing mechanism for each flow engines.
v3: separate the patch set from the ecpri configure patch set Jeff Guo (3): net/ice/base: add package PTYPE enable information net/ice/base: add PTYPE value net/ice: refactor PTYPE parsing drivers/net/ice/base/ice_flex_pipe.c | 79 ++++++++++++++ drivers/net/ice/base/ice_flex_pipe.h | 3 + drivers/net/ice/base/ice_flex_type.h | 157 ++++++++++++++++++++------- drivers/net/ice/base/ice_type.h | 1 + drivers/net/ice/ice_acl_filter.c | 3 +- drivers/net/ice/ice_fdir_filter.c | 63 ++--------- drivers/net/ice/ice_generic_flow.c | 132 ++++++++++++++++++++-- drivers/net/ice/ice_generic_flow.h | 9 +- drivers/net/ice/ice_hash.c | 47 ++------ drivers/net/ice/ice_switch_filter.c | 139 +++--------------------- 10 files changed, 366 insertions(+), 267 deletions(-) -- 2.20.1