net/mlx5: fix inline length for multi-segment TSO
PATCH 1/1 net/mlx5: fix inline length for multi-segment TSO
This patch removes a redundant assert in mlx5_tx_packet_multi_tso(). That assert assured that the amount of bytes requested to be inlined is greater than or equal to the minimum amount of bytes required to be inlined. This requirement is either derived from the NIC inlining mode or configured through devargs. When using TSO this requirement can be disregarded, because on all NICs it is satisfied by TSO inlining requirements, since TSO requires L2, L3, and L4 headers to be inlined.
--- drivers/net/mlx5/mlx5_tx.h | 1 - 1 file changed, 1 deletion(-)
drivers/net/mlx5/mlx5_tx.h +0 -1
@@ -1710,7 +1710,6 @@ mlx5_tx_packet_multi_tso(struct mlx5_txq_data *__rte_restrict txq, inlen <= MLX5_ESEG_MIN_INLINE_SIZE || inlen > (dlen + vlan)))return MLX5_TXCMP_CODE_ERROR ; -MLX5_ASSERT (inlen >= txq->inlen_mode);/* * Check whether there are enough free WQEBBs: * - Control Segment
Signature · 1 line
2.25.1
Hi,
Quoted 18 lines
-----Original Message-----
From: Dariusz Sosnowski <[email protected]>
Sent: Monday, February 7, 2022 5:49 PM
To: Matan Azrad <[email protected]>; Slava Ovsiienko <[email protected]>
Cc: [email protected]; Raslan Darawsheh <[email protected]>; [email protected]
Subject: [PATCH] net/mlx5: fix inline length for multi-segment TSOThis patch removes a redundant assert in
mlx5_tx_packet_multi_tso(). That assert assured that the amount of bytes requested to be inlined is greater than or equal to the minimum amount of bytes required to be inlined. This requirement is either derived from the NIC inlining mode or configured through devargs. When using TSO this requirement can be disregarded, because on all NICs it is satisfied by TSO inlining requirements, since TSO requires L2, L3, and L4 headers to be inlined.
Quoted 6 lines
Fixes 18a1c20044c0 ("net/mlx5: implement Tx burst template")Signed-off-by Dariusz Sosnowski <[email protected]>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh