From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 387F1A00C5; Tue, 15 Feb 2022 08:38:23 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0244940E78; Tue, 15 Feb 2022 08:38:23 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 5690940DDA for ; Tue, 15 Feb 2022 08:38:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644910702; x=1676446702; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=gWwbr5NPerdMDSvpbAUcHTBiQ7i9CD2PgnIPTDQ0ivU=; b=oEjMFNJa6/0E75sgoLwyfv51XuVFHrIMUMEQUlnbpN2w54b8E/dW8i6C 4IA32N9BWDuxIYmiNXEkFBngSiaqpsBjIWL+RNJOr0XL/xCMpOLz8krxR WDoqLS+Y6sil0CPhuRI0R1hMEwTNE5MjQnLBGCZOyifCOOy7XZJulxf6e AJh+fHnoXuScvKWPESO7L0zrWxAofLv+NGiPGmsWgDPiYgIzjXeoqVt8Y r6FiiFYpCpgB7lP9DYWTImL/uOvNVnA2TDKDWUaTzuxCgI4+rxU8i2j6a Nd7HBt6wB8FwJpOH3kvjIitddbL+Cbsg29wgAmw3g1FoPuYwXOfR/OqbK g==; X-IronPort-AV: E=McAfee;i="6200,9189,10258"; a="313544782" X-IronPort-AV: E=Sophos;i="5.88,370,1635231600"; d="scan'208";a="313544782" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2022 23:38:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,370,1635231600"; d="scan'208";a="528680878" Received: from npg-dpdk-haiyue-2.sh.intel.com ([10.67.118.240]) by orsmga007.jf.intel.com with ESMTP; 14 Feb 2022 23:38:20 -0800 From: Haiyue Wang To: dev@dpdk.org Cc: Haiyue Wang , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko Subject: [PATCH v1] ethdev: beautify the Rx desc number check indent Date: Tue, 15 Feb 2022 15:04:02 +0800 Message-Id: <20220215070402.265481-1-haiyue.wang@intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Align to Tx desc number check indent, which may help to understand Rx descriptor limits member in the alignment comparison view. And remove the extra empty line. Signed-off-by: Haiyue Wang --- lib/ethdev/rte_ethdev.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c index 70c850a2f1..54f1e14c6b 100644 --- a/lib/ethdev/rte_ethdev.c +++ b/lib/ethdev/rte_ethdev.c @@ -1799,9 +1799,8 @@ rte_eth_rx_queue_setup(uint16_t port_id, uint16_t rx_queue_id, } if (nb_rx_desc > dev_info.rx_desc_lim.nb_max || - nb_rx_desc < dev_info.rx_desc_lim.nb_min || - nb_rx_desc % dev_info.rx_desc_lim.nb_align != 0) { - + nb_rx_desc < dev_info.rx_desc_lim.nb_min || + 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", nb_rx_desc, dev_info.rx_desc_lim.nb_max, -- 2.35.1