From: Natalie Samsonov <nsams...@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 <nsams...@marvell.com> --- drivers/net/mrvl/mrvl_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mrvl/mrvl_ethdev.c b/drivers/net/mrvl/mrvl_ethdev.c index e650bf8..7ce4df3 100644 --- a/drivers/net/mrvl/mrvl_ethdev.c +++ b/drivers/net/mrvl/mrvl_ethdev.c @@ -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)) { -- 2.7.4