net/fm10k: fix mbuf free in vector Rx
authorXiao Wang <xiao.w.wang@intel.com>
Sat, 26 Oct 2019 00:33:22 +0000 (20:33 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:04 +0000 (23:15 +0100)
commit84fff3425b896a465a29b92a81aab563c07847cd
tree24a64d8917d54b7717f43e4e6a5e24537fe38023
parent5ed3766981600785bcee40932feb0a4a186dfa7f
net/fm10k: fix mbuf free in vector Rx

There's a corner case that all the Rx queue mbufs are allocated but none
of them is used, this patch fixes mbuf free for this case.

Fixes: b6719f8a04bb ("fm10k: release mbuf for vector Rx")
Cc: stable@dpdk.org
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Signed-off-by: Anna Lukin <annal@silicom.co.il>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/fm10k/fm10k_rxtx_vec.c