net/i40e: fix mbuf free in vector Tx
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 10 Oct 2017 13:22:05 +0000 (09:22 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Oct 2017 00:15:10 +0000 (01:15 +0100)
commit24853544c84c152dabcd013b9ee723a059e0d5dd
tree9681b7cc4f023142bc13d68942d29aea9ce16843
parent1edc13a83b0d41f7ab982996f5a1ef9c5ee13b7b
net/i40e: fix mbuf free in vector Tx

vPMD tx does not set sw_ring's mbuf to NULL after free.
Therefore, in cases where the vector transmit function is in
use, we must use the appropriate index and threshold values
for the queue to only free the unreleased mbufs

Fixes: b4669bb95038 ("i40e: add vector Tx")
Cc: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/net/i40e/i40e_rxtx.c