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

2019-04-03 Thread David Marchand
On Tue, Apr 2, 2019 at 10:54 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 v3] eal: rename state values in rte_lcore_state

2019-04-02 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