From: Natalie Samsonov Date: Thu, 11 Jan 2018 15:35:42 +0000 (+0100) Subject: net/mrvl: fix shadow queue tail and size calculations X-Git-Tag: spdx-start~331 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b2e5d0868ee7445ebb26e47e10a0a52409428ebe;p=dpdk.git net/mrvl: fix shadow queue tail and size calculations Reset skip_buf after use to avoid wrong tail and size calculations. Fixes: afb4d0d0bf91 ("net/mrvl: add Rx/Tx support") Cc: stable@dpdk.org Signed-off-by: Natalie Samsonov --- diff --git a/drivers/net/mrvl/mrvl_ethdev.c b/drivers/net/mrvl/mrvl_ethdev.c index e650bf8157..7ce4df3a52 100644 --- a/drivers/net/mrvl/mrvl_ethdev.c +++ b/drivers/net/mrvl/mrvl_ethdev.c @@ -1932,6 +1932,7 @@ skip: sq->tail = (sq->tail + num) & MRVL_PP2_TX_SHADOWQ_MASK; sq->size -= num; num = 0; + skip_bufs = 0; } if (likely(num)) {