From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by dpdk.org (Postfix) with ESMTP id B361FC3F8 for ; Sat, 6 Jun 2015 01:16:22 +0200 (CEST) Received: by wibdq8 with SMTP id dq8so32789081wib.1 for ; Fri, 05 Jun 2015 16:16:22 -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=VhynCYIlEPWke8vgpmnf0qBHwKTMZeG/6TNxl+DXENg=; b=OSKq4MZnZk5rqxxtMMO5nHHOmno4go9MLSptogliWs8K9ji/ppi+NgGvfA539j2Xvr 3hixwCmFQQHKl36naR4rHbfgmZFD3qkP9oFa922S5pm4nw8P1WW5SmUpphUA7YOOrDyX n2dZWqUsRY7XFo4k8Xi1S2shQXvlHa7SuEvqjjZIv38nGVyen62yeNgSzh//wCL3N8pK OAAxaxGir2S51gXwrqAZkukeGQz2aElCkgF2BYi/GP4OinUBKF6ToEP6KZlv15cOpzr1 h+/rg93kfIsHASupIShIKzWUfLVBuj8c0CyZy0osfARJlI6TjC+BPgv4hc7x89Uq7BJg YQBQ== X-Gm-Message-State: ALoCoQlP4RH8TabSiGoAE1DHaA8iKbroCXoRSzY7UGmZkrz0aHnU5BRPnu50NLT7UJfD0t24p9Sq X-Received: by 10.180.36.170 with SMTP id r10mr1056114wij.10.1433546182647; Fri, 05 Jun 2015 16:16:22 -0700 (PDT) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id wv3sm12567901wjc.0.2015.06.05.16.16.21 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 05 Jun 2015 16:16:21 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Sat, 6 Jun 2015 01:15:17 +0200 Message-Id: <1433546120-2254-14-git-send-email-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1433546120-2254-1-git-send-email-adrien.mazarguil@6wind.com> References: <1433546120-2254-1-git-send-email-adrien.mazarguil@6wind.com> Subject: [dpdk-dev] [PATCH 13/16] 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: Fri, 05 Jun 2015 23:16:23 -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 73663d2..ab53c19 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/mlx4/mlx4.c @@ -1391,7 +1391,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; @@ -3103,7 +3103,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