summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_rxtx.c
diff options
context:
space:
mode:
authorYongseok Koh <yskoh@mellanox.com>2017-10-25 16:30:40 -0700
committerFerruh Yigit <ferruh.yigit@intel.com>2017-10-27 01:05:55 +0200
commit6963ae8b7c703e27ac1fbfaca8c0e9b935879ec1 (patch)
tree0c5c1ffd1ddea8b84c060e04a7a3720f0a7830ba /drivers/net/mlx5/mlx5_rxtx.c
parent62e96ffb93adc149f4c4d34d4819a12c651343cd (diff)
downloaddpdk-6963ae8b7c703e27ac1fbfaca8c0e9b935879ec1.zip
dpdk-6963ae8b7c703e27ac1fbfaca8c0e9b935879ec1.tar.gz
dpdk-6963ae8b7c703e27ac1fbfaca8c0e9b935879ec1.tar.xz
net/mlx5: fix TSO inline size calculation
When "net/mlx5: replace network to host macros" is rebased for v4, changes of "net/mlx5: fix calculating TSO inline size" have been reverted. Fixes: 6b30a6a8552a ("net/mlx5: replace network to host macros") Cc: stable@dpdk.org Signed-off-by: Yongseok Koh <yskoh@mellanox.com> Acked-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_rxtx.c')
-rw-r--r--drivers/net/mlx5/mlx5_rxtx.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c
index af0a755..7785ced 100644
--- a/drivers/net/mlx5/mlx5_rxtx.c
+++ b/drivers/net/mlx5/mlx5_rxtx.c
@@ -558,14 +558,8 @@ mlx5_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n)
break;
max_wqe -= n;
if (tso) {
- uint32_t inl =
- rte_cpu_to_be_32(copy_b |
- MLX5_INLINE_SEG);
-
- pkt_inline_sz =
- MLX5_WQE_DS(tso_header_sz) *
- MLX5_WQE_DWORD_SIZE;
-
+ inl = rte_cpu_to_be_32(copy_b |
+ MLX5_INLINE_SEG);
rte_memcpy((void *)raw,
(void *)&inl, sizeof(inl));
raw += sizeof(inl);