Re: [dpdk-dev] [PATCH] common/cpt: fix bad shift operation

2018-11-18 Thread Thomas Monjalon
15/11/2018 06:10, Anoob Joseph: > From: Ankur Dwivedi > > Coverity Issue: 323477 > > Using the rte_bsf32 function to find last set bit. This avoids > the for loop and hence the bad bit shift operation. > > Fixes: 351fbee21986 ("common/cpt: support hash") > > Signed-off-by: Ankur Dwivedi > Sig

[dpdk-dev] [PATCH] common/cpt: fix bad shift operation

2018-11-14 Thread Anoob Joseph
From: Ankur Dwivedi Coverity Issue: 323477 Using the rte_bsf32 function to find last set bit. This avoids the for loop and hence the bad bit shift operation. Fixes: 351fbee21986 ("common/cpt: support hash") Signed-off-by: Ankur Dwivedi Signed-off-by: Anoob Joseph --- drivers/common/cpt/cpt_