* [PATCH] i40e: fix i40e_reset_tx_queue cmd_type_offset_bsz init @ 2014-10-01 22:00 Jim Harris [not found] ` <20141001220021.19571.38617.stgit-KPi4ZLtu82ULgca24dCCFWt3HXsI98Cx0E9HWUfgJXw@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Jim Harris @ 2014-10-01 22:00 UTC (permalink / raw) To: dev-VfR2kkLFssw 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-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> --- 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; ^ permalink raw reply related [flat|nested] 3+ messages in thread
[parent not found: <20141001220021.19571.38617.stgit-KPi4ZLtu82ULgca24dCCFWt3HXsI98Cx0E9HWUfgJXw@public.gmane.org>]
* Re: [PATCH] i40e: fix i40e_reset_tx_queue cmd_type_offset_bsz init [not found] ` <20141001220021.19571.38617.stgit-KPi4ZLtu82ULgca24dCCFWt3HXsI98Cx0E9HWUfgJXw@public.gmane.org> @ 2014-10-09 3:29 ` Zhang, Helin [not found] ` <F35DEAC7BCE34641BA9FAC6BCA4A12E70A799EF1-0J0gbvR4kTg/UvCtAeCM4rfspsVTdybXVpNB7YpNyf8@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Zhang, Helin @ 2014-10-09 3:29 UTC (permalink / raw) To: Harris, James R, dev-VfR2kkLFssw@public.gmane.org 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; ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <F35DEAC7BCE34641BA9FAC6BCA4A12E70A799EF1-0J0gbvR4kTg/UvCtAeCM4rfspsVTdybXVpNB7YpNyf8@public.gmane.org>]
* Re: [PATCH] i40e: fix i40e_reset_tx_queue cmd_type_offset_bsz init [not found] ` <F35DEAC7BCE34641BA9FAC6BCA4A12E70A799EF1-0J0gbvR4kTg/UvCtAeCM4rfspsVTdybXVpNB7YpNyf8@public.gmane.org> @ 2014-10-09 19:07 ` Thomas Monjalon 0 siblings, 0 replies; 3+ messages in thread From: Thomas Monjalon @ 2014-10-09 19:07 UTC (permalink / raw) To: Harris, James R; +Cc: dev-VfR2kkLFssw > > 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-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > > Acked-by: Helin Zhang <helin.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > > Thanks to James for the good catch! Applied Thanks -- Thomas ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-09 19:07 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-10-01 22:00 [PATCH] i40e: fix i40e_reset_tx_queue cmd_type_offset_bsz init Jim Harris [not found] ` <20141001220021.19571.38617.stgit-KPi4ZLtu82ULgca24dCCFWt3HXsI98Cx0E9HWUfgJXw@public.gmane.org> 2014-10-09 3:29 ` Zhang, Helin [not found] ` <F35DEAC7BCE34641BA9FAC6BCA4A12E70A799EF1-0J0gbvR4kTg/UvCtAeCM4rfspsVTdybXVpNB7YpNyf8@public.gmane.org> 2014-10-09 19:07 ` Thomas Monjalon
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).