net/mrvl: fix shadow queue tail and size calculations
authorNatalie Samsonov <nsamsono@marvell.com>
Thu, 11 Jan 2018 15:35:42 +0000 (16:35 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
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>
drivers/net/mrvl/mrvl_ethdev.c

index e650bf8..7ce4df3 100644 (file)
@@ -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)) {