Re: [dpdk-dev] [PATCH v6 3/3] efd: run-time dispatch over x86 EFD functions

2017-10-05 Thread Li, Xiaoyun
Yes. Sorry about that. > -Original Message- > From: Ananyev, Konstantin > Sent: Thursday, October 5, 2017 17:41 > To: Li, Xiaoyun ; Richardson, Bruce > > Cc: Lu, Wenzhuo ; Zhang, Helin > ; dev@dpdk.org > Subject: RE: [PATCH v6 3/3] efd: run-time dispatch over x86 EFD functions > > > >

Re: [dpdk-dev] [PATCH v6 3/3] efd: run-time dispatch over x86 EFD functions

2017-10-05 Thread Ananyev, Konstantin
> +efd_value_t > +efd_lookup_internal_avx2(const efd_hashfunc_t *group_hash_idx, > + const efd_lookuptbl_t *group_lookup_table, > + const uint32_t hash_val_a, const uint32_t hash_val_b) > +{ > +#ifdef CC_SUPPORT_AVX2 > + efd_value_t value = 0; > + uint32_t i = 0; >

[dpdk-dev] [PATCH v6 3/3] efd: run-time dispatch over x86 EFD functions

2017-10-04 Thread Xiaoyun Li
This patch enables x86 EFD file be compiled only if the compiler supports AVX2 since it is already chosen at run-time. Signed-off-by: Xiaoyun Li --- lib/librte_efd/Makefile | 6 +++ lib/librte_efd/rte_efd_x86.c | 87 lib/librte_efd/rte_efd_x86.h