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 5C28F41EB5 for ; Fri, 17 Mar 2023 02:44:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4872742FB8; Fri, 17 Mar 2023 02:44:11 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 0B8EF42F9E; Fri, 17 Mar 2023 02:44:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679017449; x=1710553449; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=dUQguc7V3ZIk3T4c+77AEjIo9UKd8BDsa0mQNOK3gs4=; b=SuB0/kPo72uCmCfEwB/9rpPSt45uFbC4JORuCb4ctSKzM0IPCweH0gfA RmUUYbZ4X8fEzjZjfAGnmm3bxPt2mdE0qxWGpYBD5zSTwSkdreyXpEGqs IkM7n/Q2IGu9X+nCKYBcQcM5iwYOfj0IYp2klZwegMjGEHAmLiz6Kya5z 5uxUeLveLIJ3XAxkK8i+W+wbZI6Pi/PpfFdrJI1vz6S6eLYvlZZaoUQ8g yjnMK6nMVP+eQxj7Q3+fBrJnhkYwrC5my/3IMfJ4ZCLmCOCKxDeUjO3Ze x31dHKlKiLu2WSeImnzL7K3G9FHHII1NSRiFzJmINKb6fuyE/x2AmyVp+ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10651"; a="424427822" X-IronPort-AV: E=Sophos;i="5.98,267,1673942400"; d="scan'208";a="424427822" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2023 18:44:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10651"; a="712571805" X-IronPort-AV: E=Sophos;i="5.98,267,1673942400"; d="scan'208";a="712571805" Received: from sh_lab5_1.sh.intel.com (HELO ocsbesrhlrepo01.sh.intel.com) ([10.238.175.110]) by orsmga001.jf.intel.com with ESMTP; 16 Mar 2023 18:44:05 -0700 From: Wei Huang To: dev@dpdk.org, thomas@monjalon.net, david.marchand@redhat.com Cc: stable@dpdk.org, rosen.xu@intel.com, tianfei.zhang@intel.com, qi.z.zhang@intel.com, Wei Huang Subject: [PATCH v1] net/ipn3ke: fix thread exit issue Date: Thu, 16 Mar 2023 16:45:06 -0400 Message-Id: <20230316204506.360432-1-wei.huang@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Thread does not exit after driver is removed. When there is no more representor exist, the variable 'num' will be 0 and thread can exit safely at this time. Fixes: 70d6b7f550f4 ("net/ipn3ke: add representor") Cc: stable@dpdk.org Signed-off-by: Wei Huang --- drivers/net/ipn3ke/ipn3ke_representor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ipn3ke/ipn3ke_representor.c b/drivers/net/ipn3ke/ipn3ke_representor.c index 2ef96a9..e50fc73 100644 --- a/drivers/net/ipn3ke/ipn3ke_representor.c +++ b/drivers/net/ipn3ke/ipn3ke_representor.c @@ -2579,7 +2579,7 @@ struct rte_eth_xstat_name *xstats_names, } rte_delay_us(50 * MS); - if (num == 0xffffff) + if (num == 0 || num == 0xffffff) return NULL; } -- 1.8.3.1