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 <nsamsono@marvell.com>
This commit is contained in:
parent
a9bd1322b8
commit
b2e5d0868e
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user