* [PATCH] sched: subport field is unused in hqos profile
@ 2022-08-18 6:11 Megha Ajmera
2022-10-05 18:15 ` [PATCH v2] " Megha Ajmera
0 siblings, 1 reply; 3+ messages in thread
From: Megha Ajmera @ 2022-08-18 6:11 UTC (permalink / raw)
To: dev, jasvinder.singh, cristian.dumitrescu
Signed-off-by: Megha Ajmera <megha.ajmera@intel.com>
---
examples/qos_sched/profile.cfg | 2 --
1 file changed, 2 deletions(-)
diff --git a/examples/qos_sched/profile.cfg b/examples/qos_sched/profile.cfg
index d4b21c0170..8da5777538 100644
--- a/examples/qos_sched/profile.cfg
+++ b/examples/qos_sched/profile.cfg
@@ -26,8 +26,6 @@ number of subports per port = 1
number of pipes per subport = 4096
queue sizes = 64 64 64 64 64 64 64 64 64 64 64 64 64
-subport 0-8 = 0 ; These subports are configured with subport profile 0
-
[subport profile 0]
tb rate = 1250000000 ; Bytes per second
tb size = 1000000 ; Bytes
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2] sched: subport field is unused in hqos profile
2022-08-18 6:11 [PATCH] sched: subport field is unused in hqos profile Megha Ajmera
@ 2022-10-05 18:15 ` Megha Ajmera
2022-10-05 18:24 ` [PATCH v3] " Megha Ajmera
0 siblings, 1 reply; 3+ messages in thread
From: Megha Ajmera @ 2022-10-05 18:15 UTC (permalink / raw)
To: dev, jasvinder.singh, cristian.dumitrescu; +Cc: stable
Removed ununsed subport field from profile.cfg
Correctly using subport profile id in subport config load.
Fixes: 802d214dc880 ("examples/qos_sched: update subport rate dynamically")
Cc: cristian.dumitrescu@intel.com
Signed-off-by: Megha Ajmera <megha.ajmera@intel.com>
---
examples/qos_sched/cfg_file.c | 2 +-
examples/qos_sched/profile.cfg | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/examples/qos_sched/cfg_file.c b/examples/qos_sched/cfg_file.c
index 3d5d75fcf0..fa3e802363 100644
--- a/examples/qos_sched/cfg_file.c
+++ b/examples/qos_sched/cfg_file.c
@@ -157,7 +157,7 @@ cfg_load_subport_profile(struct rte_cfgfile *cfg,
profiles = rte_cfgfile_num_sections(cfg, "subport profile",
sizeof("subport profile") - 1);
- subport_params[0].n_pipe_profiles = profiles;
+ port_params.n_subport_profiles= profiles;
for (i = 0; i < profiles; i++) {
char sec_name[32];
diff --git a/examples/qos_sched/profile.cfg b/examples/qos_sched/profile.cfg
index c9ec187c93..e8de101b6c 100644
--- a/examples/qos_sched/profile.cfg
+++ b/examples/qos_sched/profile.cfg
@@ -26,8 +26,6 @@ number of subports per port = 1
number of pipes per subport = 4096
queue sizes = 64 64 64 64 64 64 64 64 64 64 64 64 64
-subport 0-8 = 0 ; These subports are configured with subport profile 0
-
[subport profile 0]
tb rate = 1250000000 ; Bytes per second
tb size = 1000000 ; Bytes
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v3] sched: subport field is unused in hqos profile
2022-10-05 18:15 ` [PATCH v2] " Megha Ajmera
@ 2022-10-05 18:24 ` Megha Ajmera
0 siblings, 0 replies; 3+ messages in thread
From: Megha Ajmera @ 2022-10-05 18:24 UTC (permalink / raw)
To: dev, jasvinder.singh, cristian.dumitrescu; +Cc: stable
Removed unused subport field from profile.cfg
Correctly using subport profile id in subport config load.
Fixes: 802d214dc880 ("examples/qos_sched: update subport rate dynamically")
Cc: cristian.dumitrescu@intel.com
Signed-off-by: Megha Ajmera <megha.ajmera@intel.com>
---
examples/qos_sched/cfg_file.c | 2 +-
examples/qos_sched/profile.cfg | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/examples/qos_sched/cfg_file.c b/examples/qos_sched/cfg_file.c
index 3d5d75fcf0..ca871d3287 100644
--- a/examples/qos_sched/cfg_file.c
+++ b/examples/qos_sched/cfg_file.c
@@ -157,7 +157,7 @@ cfg_load_subport_profile(struct rte_cfgfile *cfg,
profiles = rte_cfgfile_num_sections(cfg, "subport profile",
sizeof("subport profile") - 1);
- subport_params[0].n_pipe_profiles = profiles;
+ port_params.n_subport_profiles = profiles;
for (i = 0; i < profiles; i++) {
char sec_name[32];
diff --git a/examples/qos_sched/profile.cfg b/examples/qos_sched/profile.cfg
index c9ec187c93..e8de101b6c 100644
--- a/examples/qos_sched/profile.cfg
+++ b/examples/qos_sched/profile.cfg
@@ -26,8 +26,6 @@ number of subports per port = 1
number of pipes per subport = 4096
queue sizes = 64 64 64 64 64 64 64 64 64 64 64 64 64
-subport 0-8 = 0 ; These subports are configured with subport profile 0
-
[subport profile 0]
tb rate = 1250000000 ; Bytes per second
tb size = 1000000 ; Bytes
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-10-05 18:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-18 6:11 [PATCH] sched: subport field is unused in hqos profile Megha Ajmera
2022-10-05 18:15 ` [PATCH v2] " Megha Ajmera
2022-10-05 18:24 ` [PATCH v3] " Megha Ajmera
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).