DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH / RFC] sched: Correct subport calcuation
@ 2016-06-10  6:29 Simon Kagstrom
  2016-06-21  6:40 ` Simon Kågström
  2016-06-23 19:44 ` Dumitrescu, Cristian
  0 siblings, 2 replies; 4+ messages in thread
From: Simon Kagstrom @ 2016-06-10  6:29 UTC (permalink / raw)
  To: cristian.dumitrescu, stephen, dev, thomas.monjalon

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
---
I'm a total newbie to the rte_sched design and implementation, so I've
added the RFC.

We get crashes (at other places in the scheduler) without this code.

 lib/librte_sched/rte_sched.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c
index 1609ea8..b46ecfb 100644
--- a/lib/librte_sched/rte_sched.c
+++ b/lib/librte_sched/rte_sched.c
@@ -1869,7 +1869,7 @@ grinder_next_pipe(struct rte_sched_port *port, uint32_t pos)
 
 	/* Install new pipe in the grinder */
 	grinder->pindex = pipe_qindex >> 4;
-	grinder->subport = port->subport + (grinder->pindex / port->n_pipes_per_subport);
+	grinder->subport = port->subport + (grinder->pindex / port->n_subports_per_port);
 	grinder->pipe = port->pipe + grinder->pindex;
 	grinder->pipe_params = NULL; /* to be set after the pipe structure is prefetched */
 	grinder->productive = 0;
-- 
1.9.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-06-23 19:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-10  6:29 [dpdk-dev] [PATCH / RFC] sched: Correct subport calcuation Simon Kagstrom
2016-06-21  6:40 ` Simon Kågström
2016-06-21  9:03   ` Dumitrescu, Cristian
2016-06-23 19:44 ` Dumitrescu, Cristian

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).