net/mlx5: fix wait descriptor opcode for ConnectX-7
PATCH 1/1 net/mlx5: fix wait descriptor opcode for ConnectX-7
Since ConnectX-7 the special hardware capability to schedule packet sending on specified time is provided. It uses special WAIT WQE (hardware descriptor) with wait condition defined by opcode. The CYCLIC_BIGGER was wrongly used instead of CYCLIC_SMALLER. This caused arbitrary and stale time shift in traffic scheduling.
--- drivers/net/mlx5/mlx5_tx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/mlx5/mlx5_tx.h +1 -1
@@ -817,7 +817,7 @@ mlx5_tx_wseg_init(struct mlx5_txq_data *restrict txq,struct mlx5_wqe_wseg *ws; ws =RTE_PTR_ADD (wqe,MLX5_WSEG_SIZE ); - ws->operation =rte_cpu_to_be_32 (MLX5_WAIT_COND_CYCLIC_BIGGER ); + ws->operation =rte_cpu_to_be_32 (MLX5_WAIT_COND_CYCLIC_SMALLER ); ws->lkey =RTE_BE32 (0 ); ws->va_high =RTE_BE32 (0 ); ws->va_low =RTE_BE32 (0 );
Signature · 1 line
2.18.1
Hi,
Quoted 15 lines
-----Original Message-----
From: Slava Ovsiienko <[email protected]>
Sent: Tuesday, January 3, 2023 1:11 PM
To: [email protected]
Cc: Matan Azrad <[email protected]>; Raslan Darawsheh <[email protected]>; Ori Kam <[email protected]>; [email protected]
Subject: [PATCH] net/mlx5: fix wait descriptor opcode for ConnectX-7Since ConnectX-7 the special hardware capability to schedule packet sending on specified time is provided. It uses special WAIT WQE (hardware descriptor) with wait condition defined by opcode. The
CYCLIC_BIGGERwas wrongly used instead ofCYCLIC_SMALLER. This caused arbitrary and stale time shift in traffic scheduling.
Quoted 4 lines
Fixes 49e8797619e40 ("net/mlx5: support wait on time in Tx")Signed-off-by Viacheslav Ovsiienko <[email protected]>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh