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:
8340392
)
mlx4: fix scattered Tx with too many segments
author
Adrien Mazarguil
<adrien.mazarguil@6wind.com>
Mon, 23 Nov 2015 14:44:38 +0000
(15:44 +0100)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Tue, 24 Nov 2015 16:49:27 +0000
(17:49 +0100)
Buffers with too many segments are linearized to overcome
MLX4_PMD_SGE_WR_N, unfortunately the last segment is never sent.
Fixes:
be11b35817e0
("mlx4: move scattered Tx processing to helper function")
Signed-off-by: Jesper Wramberg <jesper.wramberg@gmail.com>
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4.c
patch
|
blob
|
history
diff --git
a/drivers/net/mlx4/mlx4.c
b/drivers/net/mlx4/mlx4.c
index
f46a09e
..
75543bb
100644
(file)
--- a/
drivers/net/mlx4/mlx4.c
+++ b/
drivers/net/mlx4/mlx4.c
@@
-1195,6
+1195,8
@@
tx_burst_sg(struct txq *txq, unsigned int segs, struct txq_elt *elt,
sge->length = size;
sge->lkey = txq->mr_linear->lkey;
sent_size += size;
+ /* Include last segment. */
+ segs++;
}
return (struct tx_burst_sg_ret){
.length = sent_size,