hash: optimize Toeplitz RSS computation
authorYangchao Zhou <zhouyates@gmail.com>
Tue, 22 Aug 2017 12:02:35 +0000 (20:02 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 7 Oct 2017 11:50:43 +0000 (13:50 +0200)
commit3fb1ea032bd6ff8317af5dac9af901f1f324cab4
treeb2c45e6a317b5652f5b31a62d91b9e0b16b32989
parent98b8ec70604065f511aea0a567b039421bc524cc
hash: optimize Toeplitz RSS computation

Use rte_bsf32 and fast bit unset operation to optimize the
softrss computation.
The following measurements shows improvement over the default
softrss computation function.

tuple lens old(cycles) new(cycles)
    3        1225         337
    9        3743         992

Signed-off-by: Yangchao Zhou <zhouyates@gmail.com>
Reviewed-by: Vladimir Medvedkin <medvedkinv@gmail.com>
lib/librte_hash/rte_thash.h