Re: [dpdk-dev] [PATCH v2] examples/vhost: fix the wrong initialization of lcore_ids

2017-01-11 Thread Yuanhan Liu
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. > >

[dpdk-dev] [PATCH v2] examples/vhost: fix the wrong initialization of lcore_ids

2017-01-10 Thread Yong Wang
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". Fix it by introducing two braces. Fixes: 45657a5c6861 ("examples/vhost: use tailq to link vhost devic