net/mlx5e: RX, Add checks for calculated Striding RQ attributes
[sfrench/cifs-2.6.git] / include / linux / mlx5 / device.h
index 92a029a800a00e9694f51956245a12db3de29aa7..578c4ccae91c59f7e3942bff3ca529a6d9cf4f65 100644 (file)
@@ -911,8 +911,11 @@ static inline u16 get_cqe_flow_tag(struct mlx5_cqe64 *cqe)
        return be32_to_cpu(cqe->sop_drop_qpn) & 0xFFF;
 }
 
-#define MLX5_MPWQE_LOG_NUM_STRIDES_BASE        (9)
-#define MLX5_MPWQE_LOG_STRIDE_SZ_BASE  (6)
+#define MLX5_MPWQE_LOG_NUM_STRIDES_EXT_BASE    3
+#define MLX5_MPWQE_LOG_NUM_STRIDES_BASE                9
+#define MLX5_MPWQE_LOG_NUM_STRIDES_MAX         16
+#define MLX5_MPWQE_LOG_STRIDE_SZ_BASE          6
+#define MLX5_MPWQE_LOG_STRIDE_SZ_MAX           13
 
 struct mpwrq_cqe_bc {
        __be16  filler_consumed_strides;