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

Thomas Monjalon thomas at monjalon.net
Sun Nov 18 17:36:50 CET 2018


15/11/2018 06:10, Anoob Joseph:
> From: Ankur Dwivedi <ankur.dwivedi at caviumnetworks.com>
> 
> 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 <ankur.dwivedi at caviumnetworks.com>
> Signed-off-by: Anoob Joseph <anoob.joseph at caviumnetworks.com>

Applied, thanks





More information about the dev mailing list