summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIntel <intel.com>2013-12-04 10:00:00 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-01-15 15:31:09 +0100
commit5a6d9897f91f6bb4b2dad8b789aecda1376dd00f (patch)
tree0b848ac8818771a97c4500c75e8a9540bccb6805
parentb2595c4aa92d412e03eed6223db229ae971bb64c (diff)
downloaddpdk-5a6d9897f91f6bb4b2dad8b789aecda1376dd00f.zip
dpdk-5a6d9897f91f6bb4b2dad8b789aecda1376dd00f.tar.gz
dpdk-5a6d9897f91f6bb4b2dad8b789aecda1376dd00f.tar.xz
ixgbe: residual fix about resetting big Tx queues
Index overflow when resetting big queues was partially fixed in bcf457f8c0d64a5c (ixgbe: fix index overflow when resetting big Tx queues) and better fixed in e8ae856140bce4e4 (igb/ixgbe: fix index overflow when resetting big queues) But this version (1.5.2r0) has residues of the initial fix from 1.5.1r0. Signed-off-by: Intel
-rw-r--r--lib/librte_pmd_ixgbe/ixgbe_rxtx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c
index 6f82918..d0c8cbb 100644
--- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c
+++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c
@@ -1813,9 +1813,9 @@ ixgbe_reset_tx_queue(struct igb_tx_queue *txq)
volatile union ixgbe_adv_tx_desc *txd = &txq->tx_ring[i];
txd->wb.status = IXGBE_TXD_STAT_DD;
txe[i].mbuf = NULL;
- txe[i].last_id = i;
- txe[prev].next_id = i;
- prev = i;
+ txe[i].last_id = (uint16_t)i;
+ txe[prev].next_id = (uint16_t)i;
+ prev = (uint16_t)i;
}
txq->tx_next_dd = (uint16_t)(txq->tx_rs_thresh - 1);