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

2019-03-26 Thread Thomas Monjalon
26/03/2019 20:25, 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 "LCORE_

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

2019-03-26 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 "LCORE_" to the enum values, and make them grammatically