From: Or Ami Date: Tue, 30 Jun 2015 09:27:55 +0000 (+0200) Subject: mlx4: fix error message for invalid number of descriptors X-Git-Tag: spdx-start~8898 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0ab6626beb9c911c5334c9a8762ce6fbcd52ce5d;p=dpdk.git 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 --- 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. */