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 1D38142A9D; Tue, 9 May 2023 04:00:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9AA33410D7; Tue, 9 May 2023 04:00:22 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id EAD4B410D3; Tue, 9 May 2023 04:00:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683597621; x=1715133621; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EcN+GXPgRNFI4Zg8F+5p2oy0oi60RJx/J29bVEVGA/8=; b=j2PXTwCu0qwg5bcF/QWG8rNR0xGexhc01wwHF7WSQf1fuVMcYlBDqSwj FbLr3TWSgTEdC0LUqFYx1/PmjHWCKTXYrsXFE69sRGC42WAm7+W2/z1f5 GqqaBLmkkr0utqLsrnSi3JhZjWCQU7hWu7zDfHj+k9PEMlSz+VrO5x2x5 IRq37R//eaNXdKHqPe6rnLORbhy1moknXe7c8NjVKC1wyCpzDnAQ1xRu2 x34NhacfhD8PUZP6SsDQtjPYDmIcLX1YiIG4XYFehxFc/ej0shLsrvGW6 cuFD/52i/nYbtuqqDPm51DsZVmpG6UhwIEBjQ4P9YQmLincDe+snZ7Oip g==; X-IronPort-AV: E=McAfee;i="6600,9927,10704"; a="413058739" X-IronPort-AV: E=Sophos;i="5.99,259,1677571200"; d="scan'208";a="413058739" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2023 19:00:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10704"; a="788334210" X-IronPort-AV: E=Sophos;i="5.99,259,1677571200"; d="scan'208";a="788334210" Received: from shwdenpg561.ccr.corp.intel.com (HELO dpdk..) ([10.239.252.3]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2023 19:00:09 -0700 From: Kaiwen Deng To: dev@dpdk.org Cc: stable@dpdk.org, qiming.yang@intel.com, yidingx.zhou@intel.com, Kaiwen Deng , Qi Zhang Subject: [PATCH v2] net/ice: fix dcf init rss blocked Date: Tue, 9 May 2023 09:22:09 +0800 Message-Id: <20230509012209.4169705-1-kaiwenx.deng@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230506064822.4153301-1-kaiwenx.deng@intel.com> References: <20230506064822.4153301-1-kaiwenx.deng@intel.com> 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 The i variable type is uint8_t which causes a dead loop, changing it to size_t will solve this issue. Signed-off-by: Kaiwen Deng --- drivers/net/ice/ice_dcf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_dcf.c b/drivers/net/ice/ice_dcf.c index 1c3d22ae0f..3e3004f51b 100644 --- a/drivers/net/ice/ice_dcf.c +++ b/drivers/net/ice/ice_dcf.c @@ -854,7 +854,8 @@ ice_dcf_init_rss(struct ice_dcf_hw *hw) { struct rte_eth_dev *dev = hw->eth_dev; struct rte_eth_rss_conf *rss_conf; - uint8_t i, j, nb_q; + uint8_t j, nb_q; + size_t i; int ret; rss_conf = &dev->data->dev_conf.rx_adv_conf.rss_conf; -- 2.34.1