net/ice/base: include more E810T adapters
Expand the ice_is_e810t to include: - Intel(R) Ethernet Network Adapter E810-C-Q2T - Intel(R) Ethernet 25G 4P E810-XXV-st Signed-off-by: Maciej Machnikowski <maciej.machnikowski@intel.com> Signed-off-by: Qi Zhang <qi.z.zhang@intel.com> Acked-by: Junfeng Guo <junfeng.guo@intel.com>
This commit is contained in:
parent
3affa0ef2d
commit
8d90c55c45
@ -208,8 +208,21 @@ bool ice_is_e810(struct ice_hw *hw)
|
||||
*/
|
||||
bool ice_is_e810t(struct ice_hw *hw)
|
||||
{
|
||||
return (hw->device_id == ICE_DEV_ID_E810C_SFP &&
|
||||
hw->subsystem_device_id == ICE_SUBDEV_ID_E810T);
|
||||
switch (hw->device_id) {
|
||||
case ICE_DEV_ID_E810C_SFP:
|
||||
if (hw->subsystem_device_id == ICE_SUBDEV_ID_E810T ||
|
||||
hw->subsystem_device_id == ICE_SUBDEV_ID_E810T2)
|
||||
return true;
|
||||
break;
|
||||
case ICE_DEV_ID_E810C_QSFP:
|
||||
if (hw->subsystem_device_id == ICE_SUBDEV_ID_E810T2)
|
||||
return true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -23,6 +23,7 @@
|
||||
/* Intel(R) Ethernet Controller E810-C for SFP */
|
||||
#define ICE_DEV_ID_E810C_SFP 0x1593
|
||||
#define ICE_SUBDEV_ID_E810T 0x000E
|
||||
#define ICE_SUBDEV_ID_E810T2 0x000F
|
||||
/* Intel(R) Ethernet Controller E810-XXV for backplane */
|
||||
#define ICE_DEV_ID_E810_XXV_BACKPLANE 0x1599
|
||||
/* Intel(R) Ethernet Controller E810-XXV for QSFP */
|
||||
|
Loading…
Reference in New Issue
Block a user