NUM_OF_PHYS_TCS
#define PURE_LB_TC NUM_OF_PHYS_TCS
#define NUM_OF_TCS (NUM_OF_PHYS_TCS + 1)
qm_info->max_phys_tcs_per_port = four_port ? NUM_PHYS_TCS_4PORT_K2 : NUM_OF_PHYS_TCS;
u16 tc_rate[NUM_OF_PHYS_TCS] /* RL rate per physical TC (in Mbps). If set to 0, the RL will be disabled. */;
for (tc = 0, reg_offset = 0; tc < NUM_OF_PHYS_TCS; tc++, reg_offset += 4) {
u8 tc_pri_mask[NUM_OF_PHYS_TCS] = { 0 };
for (tc = 0; tc < NUM_OF_PHYS_TCS; tc++) {
return NUM_OF_PHYS_TCS * (ECORE_IS_E5(p_hwfn->p_dev) ? MAX_NUM_PORTS_E5 : MAX_NUM_PORTS_BB) + port_id;
return port_id * (ECORE_IS_E5(p_hwfn->p_dev) ? NUM_OF_PHYS_TCS : max_phys_tcs_per_port) + tc;
for (tc = 0; tc < NUM_OF_PHYS_TCS; tc++)
for (tc = 0; tc < NUM_OF_PHYS_TCS; tc++) {
num_tc = is_lb ? NUM_OF_TCS : NUM_OF_PHYS_TCS;