From patchwork Mon Dec 3 09:54:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yaroslav Brustinov X-Patchwork-Id: 48493 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9384B1B4CE; Mon, 3 Dec 2018 10:55:41 +0100 (CET) Received: from aer-iport-2.cisco.com (aer-iport-2.cisco.com [173.38.203.52]) by dpdk.org (Postfix) with ESMTP id 7B1BB1B4CA for ; Mon, 3 Dec 2018 10:55:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1348; q=dns/txt; s=iport; t=1543830940; x=1545040540; h=from:to:cc:subject:date:message-id; bh=PVqbJCsWiOkQJQHhJ9/ur4ztvvkzhHEj48iSKxKjOrE=; b=Buedbe1x0L3GXoSmNcWs8XwWA0HqPz3IS/EtNCkdA9sFjUJXFwgEv2Zb qaNddZ4pzXwQi5G3c6wzS3jKsdkTg33YT5Xi3QJ5E/0awAWMPr2NnwTN6 zCcjWZdkX3cJbVXI4f4HEXQ17YCaWOgy7MZb/e7teATQKAsyNx6YBnyMO E=; X-IronPort-AV: E=Sophos;i="5.56,310,1539648000"; d="scan'208";a="8544196" Received: from aer-iport-nat.cisco.com (HELO aer-core-1.cisco.com) ([173.38.203.22]) by aer-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Dec 2018 09:55:40 +0000 Received: from csi-trex-18.cisco.com (csi-trex-18.cisco.com [10.56.216.151]) (authenticated bits=0) by aer-core-1.cisco.com (8.15.2/8.15.2) with ESMTPSA id wB39tXCw019583 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 3 Dec 2018 09:55:39 GMT From: Yaroslav Brustinov To: thomas@monjalon.net, ferruh.yigit@intel.com, arybchenko@solarflare.com Cc: dev@dpdk.org, Yaroslav Brustinov Date: Mon, 3 Dec 2018 11:54:04 +0200 Message-Id: <1543830844-30343-1-git-send-email-ybrustin@cisco.com> X-Mailer: git-send-email 2.1.0 X-Authenticated-User: ybrustin@cisco.com X-Outbound-SMTP-Client: 10.56.216.151, csi-trex-18.cisco.com X-Outbound-Node: aer-core-1.cisco.com Subject: [dpdk-dev] [PATCH] librte_ethdev: Fix typo in error message of invalid nb_rx_desc or nb_tx_desc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Yaroslav Brustinov Reviewed-by: Ferruh Yigit --- lib/librte_ethdev/rte_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c index 5f85817..9d5107d 100644 --- a/lib/librte_ethdev/rte_ethdev.c +++ b/lib/librte_ethdev/rte_ethdev.c @@ -1594,7 +1594,7 @@ rte_eth_rx_queue_setup(uint16_t port_id, uint16_t rx_queue_id, nb_rx_desc % dev_info.rx_desc_lim.nb_align != 0) { RTE_ETHDEV_LOG(ERR, - "Invalid value for nb_rx_desc(=%hu), should be: <= %hu, = %hu, and a product of %hu\n", + "Invalid value for nb_rx_desc(=%hu), should be: <= %hu, >= %hu, and a product of %hu\n", nb_rx_desc, dev_info.rx_desc_lim.nb_max, dev_info.rx_desc_lim.nb_min, dev_info.rx_desc_lim.nb_align); @@ -1698,7 +1698,7 @@ rte_eth_tx_queue_setup(uint16_t port_id, uint16_t tx_queue_id, nb_tx_desc < dev_info.tx_desc_lim.nb_min || nb_tx_desc % dev_info.tx_desc_lim.nb_align != 0) { RTE_ETHDEV_LOG(ERR, - "Invalid value for nb_tx_desc(=%hu), should be: <= %hu, = %hu, and a product of %hu\n", + "Invalid value for nb_tx_desc(=%hu), should be: <= %hu, >= %hu, and a product of %hu\n", nb_tx_desc, dev_info.tx_desc_lim.nb_max, dev_info.tx_desc_lim.nb_min, dev_info.tx_desc_lim.nb_align);