]> git.droids-corp.org - dpdk.git/blobdiff - lib/sched/rte_sched.c
sched: fix traffic class oversubscription parameter
[dpdk.git] / lib / sched / rte_sched.c
index 7c56880681fe188e74edddfc4b350d3d443a50d1..cd87e688e489feee8ee4f1ddef4b5e151372fd75 100644 (file)
@@ -1249,7 +1249,6 @@ rte_sched_subport_config(struct rte_sched_port *port,
 #ifdef RTE_SCHED_SUBPORT_TC_OV
                /* TC oversubscription */
                s->tc_ov_wm_min = port->mtu;
-               s->tc_ov_wm = s->tc_ov_wm_max;
                s->tc_ov_period_id = 0;
                s->tc_ov = 0;
                s->tc_ov_n = 0;
@@ -1277,6 +1276,7 @@ rte_sched_subport_config(struct rte_sched_port *port,
 #ifdef RTE_SCHED_SUBPORT_TC_OV
                s->tc_ov_wm_max = rte_sched_time_ms_to_bytes(profile->tc_period,
                                                        s->pipe_tc_be_rate_max);
+               s->tc_ov_wm = s->tc_ov_wm_max;
 #endif
                s->profile = subport_profile_id;