OSDN Git Service

ice: refactor PTYPE validating
authorJeff Guo <jia.guo@intel.com>
Fri, 16 Jul 2021 22:16:43 +0000 (15:16 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 14 Dec 2021 16:06:47 +0000 (08:06 -0800)
commit60f44fe4cde9c239c40fb5267126229c48f50e22
treea9c90756b2a819347a5b9406cd23ccbabcde816f
parent8818b95409d8e68da3c2ec3e407b617d9294cf37
ice: refactor PTYPE validating

Since the capability of a PTYPE within a specific package could be
negotiated by checking the HW bit map, it means that there's no need
to maintain a different PTYPE list for each type of the package when
parsing PTYPE. So refactor the PTYPE validating mechanism.

Signed-off-by: Jeff Guo <jia.guo@intel.com>
Tested-by: Tony Brelinski <tony.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_flex_type.h
drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.h