git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/ice: enable Rx timestamp on flex descriptor
[dpdk.git]
/
drivers
/
net
/
mlx5
/
mlx5_tx.h
diff --git
a/drivers/net/mlx5/mlx5_tx.h
b/drivers/net/mlx5/mlx5_tx.h
index
634c9d7
..
1a35919
100644
(file)
--- a/
drivers/net/mlx5/mlx5_tx.h
+++ b/
drivers/net/mlx5/mlx5_tx.h
@@
-1338,7
+1338,8
@@
mlx5_tx_eseg_mdat(struct mlx5_txq_data *__rte_restrict txq,
* Copying may be interrupted inside the routine
* if run into no inline hint flag.
*/
* Copying may be interrupted inside the routine
* if run into no inline hint flag.
*/
- copy = tlen >= txq->inlen_mode ? 0 : (txq->inlen_mode - tlen);
+ copy = tso ? inlen : txq->inlen_mode;
+ copy = tlen >= copy ? 0 : (copy - tlen);
copy = mlx5_tx_mseg_memcpy(pdst, loc, part, copy, olx);
tlen += copy;
if (likely(inlen <= tlen) || copy < part) {
copy = mlx5_tx_mseg_memcpy(pdst, loc, part, copy, olx);
tlen += copy;
if (likely(inlen <= tlen) || copy < part) {