On Wed, May 29, 2019 at 5:42 PM Bruce Richardson <bruce.richard...@intel.com> wrote:
> Rather than using enum values for CPU flags, which means the symbols don't > exist on other architectures, provide a flag lookup by name, allowing us to > unconditionally check for a CPU flag. > Did you consider passing a string for the CPU architecture rather than an enum? It would have to be compared to RTE_ARCH in rte_cpu_get_flagname_enabled. Or to accomodate with x86_64/i686, this could be a cpu arch family. This avoids adding a new C type that seems quite limited wrt its uses. -- David Marchand