DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] examples/dpdk_qat: Fix RX queue start number to the one just received the packets
@ 2015-09-29 11:07 Zhe Tao
  2015-12-07  1:32 ` Thomas Monjalon
  2016-03-04  8:19 ` Wu, Jingjing
  0 siblings, 2 replies; 4+ messages in thread
From: Zhe Tao @ 2015-09-29 11:07 UTC (permalink / raw)
  To: dev

Every time we started to receive the packets, the start queue number
should be the one that just received the packets, should not start from zero!

Signed-off-by: Zhe Tao <zhe.tao@intel.com>
---
 examples/dpdk_qat/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/dpdk_qat/main.c b/examples/dpdk_qat/main.c
index dc68989..b818e4e 100644
--- a/examples/dpdk_qat/main.c
+++ b/examples/dpdk_qat/main.c
@@ -187,7 +187,7 @@ nic_rx_get_packet(struct lcore_conf *qconf)
 		uint32_t i;
 
 		qconf->rx_mbuf_pos = 0;
-		for (i = 0; i < qconf->n_rx_queue; i++) {
+		for (i = qconf->rx_curr_queue; i < qconf->n_rx_queue; i++) {
 			qconf->rx_mbuf.len = rte_eth_rx_burst(
 				qconf->rx_queue_list[qconf->rx_curr_queue].port_id,
 				qconf->rx_queue_list[qconf->rx_curr_queue].queue_id,
-- 
1.9.3

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

* Re: [dpdk-dev] [PATCH] examples/dpdk_qat: Fix RX queue start number to the one just received the packets
  2015-09-29 11:07 [dpdk-dev] [PATCH] examples/dpdk_qat: Fix RX queue start number to the one just received the packets Zhe Tao
@ 2015-12-07  1:32 ` Thomas Monjalon
  2015-12-07  8:47   ` Declan Doherty
  2016-03-04  8:19 ` Wu, Jingjing
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Monjalon @ 2015-12-07  1:32 UTC (permalink / raw)
  To: Zhe Tao; +Cc: dev

2015-09-29 19:07, Zhe Tao:
> Every time we started to receive the packets, the start queue number
> should be the one that just received the packets, should not start from zero!
> 
[...]
> -		for (i = 0; i < qconf->n_rx_queue; i++) {
> +		for (i = qconf->rx_curr_queue; i < qconf->n_rx_queue; i++) {

Anyone to confirm?

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

* Re: [dpdk-dev] [PATCH] examples/dpdk_qat: Fix RX queue start number to the one just received the packets
  2015-12-07  1:32 ` Thomas Monjalon
@ 2015-12-07  8:47   ` Declan Doherty
  0 siblings, 0 replies; 4+ messages in thread
From: Declan Doherty @ 2015-12-07  8:47 UTC (permalink / raw)
  To: Thomas Monjalon, Zhe Tao; +Cc: dev

On 07/12/15 01:32, Thomas Monjalon wrote:
> 2015-09-29 19:07, Zhe Tao:
>> Every time we started to receive the packets, the start queue number
>> should be the one that just received the packets, should not start from zero!
>>
> [...]
>> -		for (i = 0; i < qconf->n_rx_queue; i++) {
>> +		for (i = qconf->rx_curr_queue; i < qconf->n_rx_queue; i++) {
>
> Anyone to confirm?
>

I'll have a look at this this morning Thomas.

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

* Re: [dpdk-dev] [PATCH] examples/dpdk_qat: Fix RX queue start number to the one just received the packets
  2015-09-29 11:07 [dpdk-dev] [PATCH] examples/dpdk_qat: Fix RX queue start number to the one just received the packets Zhe Tao
  2015-12-07  1:32 ` Thomas Monjalon
@ 2016-03-04  8:19 ` Wu, Jingjing
  1 sibling, 0 replies; 4+ messages in thread
From: Wu, Jingjing @ 2016-03-04  8:19 UTC (permalink / raw)
  To: Tao, Zhe, dev



> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Zhe Tao
> Sent: Tuesday, September 29, 2015 7:08 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] examples/dpdk_qat: Fix RX queue start
> number to the one just received the packets
> 
> Every time we started to receive the packets, the start queue number should
> be the one that just received the packets, should not start from zero!
> 
> Signed-off-by: Zhe Tao <zhe.tao@intel.com>
> ---
>  examples/dpdk_qat/main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/examples/dpdk_qat/main.c b/examples/dpdk_qat/main.c index
> dc68989..b818e4e 100644
> --- a/examples/dpdk_qat/main.c
> +++ b/examples/dpdk_qat/main.c
> @@ -187,7 +187,7 @@ nic_rx_get_packet(struct lcore_conf *qconf)
>  		uint32_t i;
> 
>  		qconf->rx_mbuf_pos = 0;
> -		for (i = 0; i < qconf->n_rx_queue; i++) {
> +		for (i = qconf->rx_curr_queue; i < qconf->n_rx_queue; i++) {
>  			qconf->rx_mbuf.len = rte_eth_rx_burst(
>  				qconf->rx_queue_list[qconf-
> >rx_curr_queue].port_id,
>  				qconf->rx_queue_list[qconf-
> >rx_curr_queue].queue_id,

I don't think we need to change the start queue number from 0 to rx_curr_queue.
If changes to start from rx_curr_queue, the queue whose id is less than rx_curr_queue
won't be scanned until this function is called next time.
> --
> 1.9.3

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

end of thread, other threads:[~2016-03-04  8:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-29 11:07 [dpdk-dev] [PATCH] examples/dpdk_qat: Fix RX queue start number to the one just received the packets Zhe Tao
2015-12-07  1:32 ` Thomas Monjalon
2015-12-07  8:47   ` Declan Doherty
2016-03-04  8:19 ` Wu, Jingjing

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