[dpdk-dev] [PATCH 09/10] eal: get relative core index

2014-11-25 Thread Bruce Richardson
On Sat, Nov 22, 2014 at 10:43:41PM +0100, Thomas Monjalon wrote: > From: Patrick Lu > > EAL -c option allows the user to enable any lcore in the system. > Often times, the user app wants to know 1st enabled core, 2nd > enabled core, etc, rather than phyical core ID (rte_lcore_id().) > > The new

[dpdk-dev] [PATCH 09/10] eal: get relative core index

2014-11-22 Thread Thomas Monjalon
From: Patrick Lu EAL -c option allows the user to enable any lcore in the system. Often times, the user app wants to know 1st enabled core, 2nd enabled core, etc, rather than phyical core ID (rte_lcore_id().) The new API rte_lcore_index() will return an index from enabled lcores starting from ze