From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 11 Jan 2017 19:04:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,348,1477983600"; d="scan'208";a="921574116" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by orsmga003.jf.intel.com with ESMTP; 11 Jan 2017 19:04:00 -0800 Date: Thu, 12 Jan 2017 11:06:12 +0800 From: Yuanhan Liu To: Yong Wang Cc: huawei.xie@intel.com, dev@dpdk.org 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 Content-Disposition: inline In-Reply-To: <1484125186-31667-1-git-send-email-wang.yong19@zte.com.cn> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH v2] examples/vhost: fix the wrong initialization of lcore_ids 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: , X-List-Received-Date: Thu, 12 Jan 2017 03:04:06 -0000 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