From: Konstantin Ananyev Date: Fri, 24 Jul 2015 13:58:13 +0000 (+0100) Subject: ixgbe: fix release queue mbufs X-Git-Tag: spdx-start~8653 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=11b220c6498dc4a35e3d5061ad18cbdd13f9bc38;hp=11b220c6498dc4a35e3d5061ad18cbdd13f9bc38;p=dpdk.git ixgbe: fix release queue mbufs The calculations of what mbufs were valid in the RX and TX queues were incorrect when freeing the mbufs for the vector PMD. This led to crashes due to invalid reference counts when mbuf debugging was turned on, and possibly other more subtle problems (such as mbufs being freed when in use) in other cases. To fix this, the following changes were made: * correct counts and post-loop values in the TX release function for the vector code. * create a new separate RX release function for the RX vector code, since the tracking of what mbufs are valid or not is different for that code path Fixes: c95584dc2b18 ("ixgbe: new vectorized functions for Rx/Tx") Signed-off-by: Bruce Richardson Signed-off-by: Konstantin Ananyev ---