DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Zhang, Helin" <helin.zhang@intel.com>
To: "Harris, James R" <james.r.harris@intel.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] i40e: fix i40e_reset_tx_queue	cmd_type_offset_bsz init
Date: Thu, 9 Oct 2014 03:29:39 +0000	[thread overview]
Message-ID: <F35DEAC7BCE34641BA9FAC6BCA4A12E70A799EF1@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <20141001220021.19571.38617.stgit@jrharri1-fbsd.ch.intel.com>

Acked-by: Helin Zhang <helin.zhang@intel.com>

Thanks to James for the good catch!

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jim Harris
> Sent: Thursday, October 2, 2014 6:00 AM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] i40e: fix i40e_reset_tx_queue
> cmd_type_offset_bsz init
> 
> Fix the descriptor initialization loop, so that it initializes the
> i40e_tx_desc::cmd_type_offset_bsz for the correct index into the tx_ring array.
> 
> Previously it would use the index once to initialize the txd local variable, then
> again when setting cmd_type_offset_bsz.
> 
> Signed-off-by: Jim Harris <james.r.harris@intel.com>
> ---
>  lib/librte_pmd_i40e/i40e_rxtx.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/librte_pmd_i40e/i40e_rxtx.c b/lib/librte_pmd_i40e/i40e_rxtx.c
> index 7c5b6a8..2b53677 100644
> --- a/lib/librte_pmd_i40e/i40e_rxtx.c
> +++ b/lib/librte_pmd_i40e/i40e_rxtx.c
> @@ -2072,7 +2072,7 @@ i40e_reset_tx_queue(struct i40e_tx_queue *txq)
>  	for (i = 0; i < txq->nb_tx_desc; i++) {
>  		volatile struct i40e_tx_desc *txd = &txq->tx_ring[i];
> 
> -		txd[i].cmd_type_offset_bsz =
> +		txd->cmd_type_offset_bsz =
>  			rte_cpu_to_le_64(I40E_TX_DESC_DTYPE_DESC_DONE);
>  		txe[i].mbuf =  NULL;
>  		txe[i].last_id = i;


  reply	other threads:[~2014-10-09  3:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-01 22:00 Jim Harris
2014-10-09  3:29 ` Zhang, Helin [this message]
2014-10-09 19:07   ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F35DEAC7BCE34641BA9FAC6BCA4A12E70A799EF1@SHSMSX104.ccr.corp.intel.com \
    --to=helin.zhang@intel.com \
    --cc=dev@dpdk.org \
    --cc=james.r.harris@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).