net/mlx5: change error-prone code on Tx path