From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by dpdk.org (Postfix) with ESMTP id 1C043C42C for ; Tue, 30 Jun 2015 11:28:45 +0200 (CEST) Received: by wiar9 with SMTP id r9so29621336wia.1 for ; Tue, 30 Jun 2015 02:28:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=O0E/cZGn1+QzNBvROX9Ef4zj0tDUI/uHP7TMKZVHMps=; b=cxDpFCI5E1JqOK4U7i+NZi0Zh1WyJ2vjMRb69GYMlBVUK3Ys6lsjTLNO8393NYBdQ6 xKwbQAVZD2wccgZaPVzRFPvmNGkCd3BE6+jj/TMG0wo9KEkpy+1aoG0ksVx8/Vei5q3Y OB60LlEFEAVHj8SyhBFrtrWFNFiW3oHBDNW2/3i+sfpMbtnSKKfVIaB/oojKHr4D90gL Ur8pMVvsbJJnTayOED6k9h0777QxItaV2+P4ImzO6hpaAh0JJqTowzdiFE6tixfKRxQF aNhwPqmGHxeBk9g0M5bArghdQ0clzFAsyRDtMxioHO9bJmzBJ2c3ig0nr0wMADcI+8R0 0M7w== X-Gm-Message-State: ALoCoQlbzpFq9/rvVFE0IWiSt/RwK1B+tK8ph0bQH9I9iHYPjjoDmdpOTXmP8d2a49aHCohdqgWq X-Received: by 10.180.81.3 with SMTP id v3mr29979126wix.36.1435656524889; Tue, 30 Jun 2015 02:28:44 -0700 (PDT) Received: from 6wind.com (6wind.net2.nerim.net. [213.41.151.210]) by mx.google.com with ESMTPSA id be3sm16084011wib.21.2015.06.30.02.28.43 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 30 Jun 2015 02:28:44 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Tue, 30 Jun 2015 11:27:55 +0200 Message-Id: <1435656489-27986-10-git-send-email-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1435656489-27986-1-git-send-email-adrien.mazarguil@6wind.com> References: <1433546120-2254-1-git-send-email-adrien.mazarguil@6wind.com> <1435656489-27986-1-git-send-email-adrien.mazarguil@6wind.com> Subject: [dpdk-dev] [PATCH v2 09/23] mlx4: fix error message for invalid number of descriptors X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2015 09:28:45 -0000 From: Or Ami 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 028e455..c87facb 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.1.0