[dpdk-dev,4/5] net/mrvl: fix shadow queue tail and size calculations
Checks
Commit Message
From: Natalie Samsonov <nsamsono@marvell.com>
Reset skip_buf after use to avoid wrong tail and size
calculations.
Fixes: afb4d0d ("net/mrvl: add Rx/Tx support")
Signed-off-by: Natalie Samsonov <nsamsono@marvell.com>
---
drivers/net/mrvl/mrvl_ethdev.c | 1 +
1 file changed, 1 insertion(+)
--
2.7.4
@@ -1932,6 +1932,7 @@ mrvl_free_sent_buffers(struct pp2_ppio *ppio, struct pp2_hif *hif,
sq->tail = (sq->tail + num) & MRVL_PP2_TX_SHADOWQ_MASK;
sq->size -= num;
num = 0;
+ skip_bufs = 0;
}
if (likely(num)) {