pipe_params[j].tc_rate[3] = (uint32_t)atoi(entry);
#ifdef RTE_SCHED_SUBPORT_TC_OV
- entry = cfg_get_entry(cfg, pipe_name, "tc 0 oversubscription weight");
- if (entry)
- pipe_params[j].tc_ov_weight[0] = (uint8_t)atoi(entry);
-
- entry = cfg_get_entry(cfg, pipe_name, "tc 1 oversubscription weight");
- if (entry)
- pipe_params[j].tc_ov_weight[1] = (uint8_t)atoi(entry);
-
- entry = cfg_get_entry(cfg, pipe_name, "tc 2 oversubscription weight");
- if (entry)
- pipe_params[j].tc_ov_weight[2] = (uint8_t)atoi(entry);
-
entry = cfg_get_entry(cfg, pipe_name, "tc 3 oversubscription weight");
if (entry)
- pipe_params[j].tc_ov_weight[3] = (uint8_t)atoi(entry);
+ pipe_params[j].tc_ov_weight = (uint8_t)atoi(entry);
#endif
entry = cfg_get_entry(cfg, pipe_name, "tc 0 wrr weights");
if (entry)
subport_params[i].tc_period = (uint32_t)atoi(entry);
-#ifdef RTE_SCHED_SUBPORT_TC_OV
- entry = cfg_get_entry(cfg, sec_name, "tc oversubscription period");
- if (entry)
- subport_params[i].tc_ov_period = (uint32_t)atoi(entry);
-#endif
-
entry = cfg_get_entry(cfg, sec_name, "tc 0 rate");
if (entry)
subport_params[i].tc_rate[0] = (uint32_t)atoi(entry);