i40e: fix Tx descriptors reset
authorJim Harris <james.r.harris@intel.com>
Wed, 1 Oct 2014 22:00:21 +0000 (15:00 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 9 Oct 2014 18:02:34 +0000 (20:02 +0200)
commitf7eda85b9cebb7cf45a3426d4b9aaec874774b9f
tree7126cf3624eaf4ba1b3d07b5addc581040d3b856
parent7a10de5e27cec6666190b7e721d808aadb6a9d5a
i40e: fix Tx descriptors reset

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>
Acked-by: Helin Zhang <helin.zhang@intel.com>
lib/librte_pmd_i40e/i40e_rxtx.c