common/cpt: fix bit shift operation for KASUMI
authorAnkur Dwivedi <ankur.dwivedi@caviumnetworks.com>
Thu, 15 Nov 2018 05:10:27 +0000 (05:10 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 18 Nov 2018 21:31:30 +0000 (22:31 +0100)
commitf9494b67c063358ec3e1e9b5605dfdea7a2b2431
tree2edaf3d186f10ef12fab5bcbcc214d96c5466158
parentb91bc6f35793c863ce15e907ad6144ada8f7f46b
common/cpt: fix bit shift operation for KASUMI

Using the rte_bsf32 function to find last set bit. This avoids
the for loop and hence the bad bit shift operation.

Coverity issue: 323477
Fixes: 351fbee21986 ("common/cpt: support hash")

Signed-off-by: Ankur Dwivedi <ankur.dwivedi@caviumnetworks.com>
Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com>
drivers/common/cpt/cpt_ucode.h