From 0ab6626beb9c911c5334c9a8762ce6fbcd52ce5d Mon Sep 17 00:00:00 2001 From: Or Ami Date: Tue, 30 Jun 2015 11:27:55 +0200 Subject: [PATCH] mlx4: fix error message for invalid number of descriptors The number of descriptors must be a multiple of MLX4_PMD_SGE_WR_N. Signed-off-by: Or Ami Signed-off-by: Olga Shern Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index 028e45510b..c87facb801 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/mlx4/mlx4.c @@ -1353,7 +1353,7 @@ txq_setup(struct rte_eth_dev *dev, struct txq *txq, uint16_t desc, (void)conf; /* Thresholds configuration (ignored). */ if ((desc == 0) || (desc % MLX4_PMD_SGE_WR_N)) { ERROR("%p: invalid number of TX descriptors (must be a" - " multiple of %d)", (void *)dev, desc); + " multiple of %d)", (void *)dev, MLX4_PMD_SGE_WR_N); return EINVAL; } desc /= MLX4_PMD_SGE_WR_N; @@ -3002,7 +3002,7 @@ rxq_setup(struct rte_eth_dev *dev, struct rxq *rxq, uint16_t desc, } if ((desc == 0) || (desc % MLX4_PMD_SGE_WR_N)) { ERROR("%p: invalid number of RX descriptors (must be a" - " multiple of %d)", (void *)dev, desc); + " multiple of %d)", (void *)dev, MLX4_PMD_SGE_WR_N); return EINVAL; } /* Get mbuf length. */ -- 2.20.1