From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH v2] examples/vhost: fix the wrong initialization of lcore_ids Date: Thu, 12 Jan 2017 11:06:12 +0800 Message-ID: <20170112030612.GA9770@yliu-dev.sh.intel.com> References: <1484125186-31667-1-git-send-email-wang.yong19@zte.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: huawei.xie@intel.com, dev@dpdk.org To: Yong Wang Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 0120C5A44 for ; Thu, 12 Jan 2017 04:04:05 +0100 (CET) Content-Disposition: inline In-Reply-To: <1484125186-31667-1-git-send-email-wang.yong19@zte.com.cn> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Jan 11, 2017 at 03:59:46AM -0500, Yong Wang wrote: > when "TAILQ_INIT()" was added to the loop of "for (lcore_id = 0; ...)" > statement, the assignment to "lcore_ids" was removed out of the loop. > It changed the original initialization of "lcore_ids". opps.... and nice catch! Thanks. > > Fix it by introducing two braces. > > Fixes: 45657a5c6861 ("examples/vhost: use tailq to link vhost devices") > > Signed-off-by: Yong Wang Applied to dpdk-next-virtio. --yliu