git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9bd132
)
net/mrvl: fix shadow queue tail and size calculations
author
Natalie Samsonov
<nsamsono@marvell.com>
Thu, 11 Jan 2018 15:35:42 +0000
(16:35 +0100)
committer
Ferruh 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
patch
|
blob
|
history
diff --git
a/drivers/net/mrvl/mrvl_ethdev.c
b/drivers/net/mrvl/mrvl_ethdev.c
index
e650bf8
..
7ce4df3
100644
(file)
--- 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)) {