From: Yongseok Koh Date: Tue, 26 Jun 2018 12:39:25 +0000 (-0700) Subject: net/mlx5: increase number of strides X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f9aaa6ac444615586729e6f25b04a6689e9d1a44;p=dpdk.git net/mlx5: increase number of strides If WQE ID is used in CQE for Multi-Packet RQ, the ratio of CQE compression drops a little bit. In order to reach to 100Gbps with 64B traffic, it is needed to further save PCIe bandwidth by increasing the number of strides in a WQE. It is now 64 by default but adjustable by a PMD parameter - mprq_log_stride_num. Signed-off-by: Yongseok Koh Acked-by: Shahaf Shuler --- diff --git a/drivers/net/mlx5/mlx5_defs.h b/drivers/net/mlx5/mlx5_defs.h index b52f7dcbe6..5bbbec2c2c 100644 --- a/drivers/net/mlx5/mlx5_defs.h +++ b/drivers/net/mlx5/mlx5_defs.h @@ -97,7 +97,7 @@ #define MLX5_UAR_OFFSET (1ULL << 32) /* Log 2 of the default number of strides per WQE for Multi-Packet RQ. */ -#define MLX5_MPRQ_STRIDE_NUM_N 4U +#define MLX5_MPRQ_STRIDE_NUM_N 6U /* Two-byte shift is disabled for Multi-Packet RQ. */ #define MLX5_MPRQ_TWO_BYTE_SHIFT 0