ice: Limit Max TCs on devices with more than 4 ports
This patch limits the max TCs set by the driver to the value provided by the firmware as per the capabilities of the device. Otherwise, hard coding to 8 TC max would fail the device configurations with more than 4 ports. Signed-off-by: Usha Ketineni <usha.k.ketineni@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
committed by
Jeff Kirsher
parent
6a025730e0
commit
a257f188b7
@@ -1594,6 +1594,18 @@ ice_parse_caps(struct ice_hw *hw, void *buf, u32 cap_count,
|
||||
prefix, func_p->guar_num_vsi);
|
||||
}
|
||||
break;
|
||||
case ICE_AQC_CAPS_DCB:
|
||||
caps->dcb = (number == 1);
|
||||
caps->active_tc_bitmap = logical_id;
|
||||
caps->maxtc = phys_id;
|
||||
ice_debug(hw, ICE_DBG_INIT,
|
||||
"%s: DCB = %d\n", prefix, caps->dcb);
|
||||
ice_debug(hw, ICE_DBG_INIT,
|
||||
"%s: active TC bitmap = %d\n", prefix,
|
||||
caps->active_tc_bitmap);
|
||||
ice_debug(hw, ICE_DBG_INIT,
|
||||
"%s: TC max = %d\n", prefix, caps->maxtc);
|
||||
break;
|
||||
case ICE_AQC_CAPS_RSS:
|
||||
caps->rss_table_size = number;
|
||||
caps->rss_table_entry_width = logical_id;
|
||||
|
||||
Reference in New Issue
Block a user