src/dpdk/drivers/net/ice/base/ice_common.c
static void
ice_recalc_port_limited_caps(struct ice_hw *hw, struct ice_hw_common_caps *caps)
{
	/* This assumes device capabilities are always scanned before function
	 * capabilities during the initialization flow.
	 */
	if (hw->dev_caps.num_funcs > 4) {
		/* Max 4 TCs per port */
		caps->maxtc = 4;
		ice_debug(hw, ICE_DBG_INIT, "reducing maxtc to %d (based on #ports)\n",
			  caps->maxtc);
	}
}
/**
 * ice_recalc_port_limited_caps - Recalculate port limited capabilities
 * @hw: pointer to the HW structure
 * @caps: pointer to capabilities structure to fix
 *
 * Re-calculate the capabilities that are dependent on the number of physical
 * ports; i.e. some features are not supported or function differently on
 * devices with more than 4 ports.
 */
Recalculate port limited capabilities
@hw: pointer to the HW structure
@caps: pointer to capabilities structure to fix

Re-calculate the capabilities that are dependent on the number of physical
ports; i.e. some features are not supported or function differently on
devices with more than 4 ports.
Recalculate port limited capabilities @hw : pointer to the HW structure @caps : pointer to capabilities structure to fix Re - calculate the capabilities that are dependent on the number of physical ports ; i . e . some features are not supported or function differently on devices with more than 4 ports .
static void
ice_recalc_port_limited_caps(struct ice_hw *hw, struct ice_hw_common_caps *caps)
{
	if (hw->dev_caps.num_funcs > 4) {
		caps->maxtc = 4;
		ice_debug(hw, ICE_DBG_INIT, "reducing maxtc to %d (based on #ports)\n",
			  caps->maxtc);
	}
}
static void ice_recalc_port_limited_caps ( struct ice_hw * hw , struct ice_hw_common_caps * caps ) { if ( hw -> dev_caps . num_funcs > 4 ) { caps -> maxtc = 4 ; ice_debug ( hw , ICE_DBG_INIT , " \n " , caps -> maxtc ) ; } }
ice_recalc_port_limited_caps - Recalculate port limited capabilities
 @hw: pointer to the HW structure
 @caps: pointer to capabilities structure to fix
ice_recalc_port_limited_caps - Recalculate port limited capabilities @hw : pointer to the HW structure @caps : pointer to capabilities structure to fix
/* This assumes device capabilities are always scanned before function
	 * capabilities during the initialization flow.
	 */ /* Max 4 TCs per port */