[dpdk-dev] [PATCH v3 3/5] hash: add fallback to software CRC32 implementation

2014-11-18 Thread Yerden Zhumabekov
18.11.2014 19:33, Neil Horman ?: > On Tue, Nov 18, 2014 at 10:56:24AM +0600, Yerden Zhumabekov wrote: >> Sorry, maybe I made a mistake here. >> >> Accoring to lib/librte_eal/common/eal_common_cpuflags.c code, it seemed >> to me that constructor attribute is not supported by intel compiler. So

[dpdk-dev] [PATCH v3 3/5] hash: add fallback to software CRC32 implementation

2014-11-18 Thread Thomas Monjalon
2014-11-18 08:33, Neil Horman: > On Tue, Nov 18, 2014 at 10:56:24AM +0600, Yerden Zhumabekov wrote: > > Sorry, maybe I made a mistake here. > > > > Accoring to lib/librte_eal/common/eal_common_cpuflags.c code, it seemed > > to me that constructor attribute is not supported by intel compiler. So >

[dpdk-dev] [PATCH v3 3/5] hash: add fallback to software CRC32 implementation

2014-11-18 Thread Yerden Zhumabekov
Sorry, maybe I made a mistake here. Accoring to lib/librte_eal/common/eal_common_cpuflags.c code, it seemed to me that constructor attribute is not supported by intel compiler. So in that case here I decided to leave the code for autodetection. Am I correct? 18.11.2014 9:21, Yerden Zhumabekov ???

[dpdk-dev] [PATCH v3 3/5] hash: add fallback to software CRC32 implementation

2014-11-18 Thread Yerden Zhumabekov
Initially, SSE4.2 support is detected via CPUID instruction. Added rte_hash_crc_set_alg() function to detect and set CRC32 implementation if necessary. SSE4.2 is allowed by default. If it's not available, fall back to sw implementation. Depending on compiler attributes support, best available alg

[dpdk-dev] [PATCH v3 3/5] hash: add fallback to software CRC32 implementation

2014-11-18 Thread Neil Horman
On Tue, Nov 18, 2014 at 10:56:24AM +0600, Yerden Zhumabekov wrote: > Sorry, maybe I made a mistake here. > > Accoring to lib/librte_eal/common/eal_common_cpuflags.c code, it seemed > to me that constructor attribute is not supported by intel compiler. So > in that case here I decided to leave the