Re: [dpdk-dev] [PATCH v4] eal: rename state values in rte_lcore_state

2019-06-20 Thread David Marchand
On Wed, Jun 19, 2019 at 9:24 PM Stephen Hemminger < step...@networkplumber.org> wrote: > C language does not really treat enum's as first class symbols. > The values in an enum live in a global namespace. That means if > DPDK defines "RUNNING" it can't be used by another enum in an > application

[dpdk-dev] [PATCH v4] eal: rename state values in rte_lcore_state

2019-06-19 Thread Stephen Hemminger
C language does not really treat enum's as first class symbols. The values in an enum live in a global namespace. That means if DPDK defines "RUNNING" it can't be used by another enum in an application using DPDK. To solve this add a prefix "RTE_LCORE_" to the enum values, and make them grammatic