sched : Initialize tc ov watermark.
PATCH 1/1 sched : Initialize tc ov watermark.
tc ov watermark is intialized with computed value of max tc ov watermark.
--- lib/librte_sched/rte_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_sched/rte_sched.c +1 -1
@@ -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;
Signature · 1 line
2.17.1
PATCH v2 1/1 sched : Initialize tc ov watermark.
tc ov watermark is initialized with computed value of max tc ov watermark.
---
v2: fix spelling error.
--- lib/librte_sched/rte_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_sched/rte_sched.c +1 -1
@@ -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;
Signature · 1 line
2.17.1
Quoted 41 lines
-----Original Message-----
From: Dharmappa, Savinay <[email protected]>
Sent: Tuesday, March 9, 2021 4:10 PM
To: Singh, Jasvinder <[email protected]>; Dumitrescu, Cristian <[email protected]>; [email protected]
Cc: Dharmappa, Savinay <[email protected]>
Subject: [PATCH v2] sched : Initialize tc ov watermark.tc ov watermark is initialized with computed value of max tc ov watermark.
Signed-off-by Savinay Dharmappa <[email protected]>---
v2: fix spelling error.--- lib/librte_sched/rte_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/librte_sched/rte_sched.c index renamed from lib/librte_sched/rte_sched.c +0
-0
7c56880681..cd87e688e4100644lib/librte_sched/rte_sched.c +1
-1@@ -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;
Quoted 2 lines
--
2.17.1
Quoted 9 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Savinay Dharmappa
Sent: Tuesday, March 9, 2021 4:10 PM
To: Singh, Jasvinder <[email protected]>; Dumitrescu, Cristian <[email protected]>; [email protected]
Cc: Dharmappa, Savinay <[email protected]>
Subject: [dpdk-dev] [PATCH v2] sched : Initialize tc ov watermark.
Quoted 9 lines
tc ov watermark is initialized with computed value of max tc ov watermark.
Signed-off-by Savinay Dharmappa <[email protected]>---
v2: fix spelling error.--- lib/librte_sched/rte_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
09/03/2021 17:10, Savinay Dharmappa:
Quoted 2 lines
tc ov watermark is initialized with computed value of max tc ov watermark.
Sorry I don't understand what the change is doing. Was there an issue?
In the title, please avoid "tc ov" which is meaningless for most of readers I guess.
Quoted 3 lines
lib/librte_sched/rte_sched.c +0
-1- s->tc_ov_wm = s->tc_ov_wm_max;
[...]
Quoted 1 line
lib/librte_sched/rte_sched.c +1
-0+ s->tc_ov_wm = s->tc_ov_wm_max;
Ping
23/03/2021 17:02, Thomas Monjalon:
Quoted 9 lines
09/03/2021 17:10, Savinay Dharmappa:
Quoted 2 lines
tc ov watermark is initialized with computed value of max tc ov watermark.
Sorry I don't understand what the change is doing. Was there an issue?
In the title, please avoid "tc ov" which is meaningless for most of readers I guess.
Quoted 11 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Tuesday, April 20, 2021 11:14 AM
To: Dharmappa, Savinay <[email protected]>; Singh, Jasvinder <[email protected]>; Dumitrescu, Cristian <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH v2] sched : Initialize tc ov watermark.
Quoted 14 lines
Ping
23/03/2021 17:02, Thomas Monjalon:
Quoted 9 lines
09/03/2021 17:10, Savinay Dharmappa:
Quoted 2 lines
tc ov watermark is initialized with computed value of max tc ov watermark.
Sorry I don't understand what the change is doing. Was there an issue?
In the title, please avoid "tc ov" which is meaningless for most of readers I guess.
Hi Thomas,
This is a fix for oversubscription threshold value of traffic class which is computed later. We will re-spin the patch by mentioning "fix" in the message and title.
Thanks,
Jasvinder
20/04/2021 12:36, Singh, Jasvinder:
Quoted 12 lines
From: Thomas Monjalon <[email protected]>
Quoted 11 lines
Ping
23/03/2021 17:02, Thomas Monjalon:
Quoted 7 lines
09/03/2021 17:10, Savinay Dharmappa:
Quoted 2 lines
tc ov watermark is initialized with computed value of max tc ov watermark.
Sorry I don't understand what the change is doing. Was there an issue?
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
In the title, please avoid "tc ov" which is meaningless for most of readers I guess.
Hi Thomas,
This is a fix for oversubscription threshold value of traffic class which is computed later. We will re-spin the patch by mentioning "fix" in the message and title.
Yes please give a clear explanation with full words, thanks.
PATCH v3 1/1 sched : fix traffic class oversubscription parameter
In reply to Savinay DharmappaThis patch fixes the traffic class oversubscription watermark value by initialising it with computed value of maximum watermark.
---
v3: update the title.
--- lib/librte_sched/rte_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_sched/rte_sched.c +1 -1
@@ -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;
Signature · 1 line
2.17.1
Thomas Monjalon
AppliedRe: [dpdk-dev] [PATCH v3] sched : fix traffic class oversubscription parameter
21/04/2021 08:50, Savinay Dharmappa:
Quoted 8 lines
This patch fixes the traffic class oversubscription watermark value by initialising it with computed value of maximum watermark.
Fixes ac6fcb841b0f ("sched: update subport rate dynamically")Signed-off-by Savinay Dharmappa <[email protected]>Acked-by Jasvinder Singh <[email protected]>
Applied, thanks
Re: [dpdk-dev] [PATCH v3] sched : fix traffic class oversubscription parameter
In reply to Savinay DharmappaQuoted 48 lines
-----Original Message-----
From: Dharmappa, Savinay <[email protected]>
Sent: Wednesday, April 21, 2021 7:50 AM
To: [email protected]; Singh, Jasvinder <[email protected]>; Dumitrescu, Cristian <[email protected]>
Cc: Dharmappa, Savinay <[email protected]>; [email protected]
Subject: [PATCH v3] sched : fix traffic class oversubscription parameterThis patch fixes the traffic class oversubscription watermark value by initialising it with computed value of maximum watermark.
Fixes ac6fcb841b0f ("sched: update subport rate dynamically")Signed-off-by Savinay Dharmappa <[email protected]>Acked-by Jasvinder Singh <[email protected]>---
v3: update the title.--- lib/librte_sched/rte_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/librte_sched/rte_sched.c +0
-1@@ -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 ;lib/librte_sched/rte_sched.c +1
-0s->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;
Quoted 2 lines
--
2.17.1