X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Fsched%2Frte_sched.c;h=cd87e688e489feee8ee4f1ddef4b5e151372fd75;hb=3a91d2d138988e208b96a98a859fc3a0d9a9fe4d;hp=7c56880681fe188e74edddfc4b350d3d443a50d1;hpb=1edf7a796ddc6b8b642153f0a434a3e44e2d4fe3;p=dpdk.git diff --git a/lib/sched/rte_sched.c b/lib/sched/rte_sched.c index 7c56880681..cd87e688e4 100644 --- a/lib/sched/rte_sched.c +++ b/lib/sched/rte_sched.c @@ -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;