app/test-pipeline: fix table hash LRU initialization
authorGuruprasad Rao <guruprasadx.rao@intel.com>
Fri, 23 Sep 2016 13:54:50 +0000 (06:54 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 23 Sep 2016 17:19:51 +0000 (19:19 +0200)
commitfcbddedc531997b66c78fea478b2b7f56683a0f2
tree128293c48d18b2285215924031f5ea3004260b7f
parenta0d655ee2fe6d9223664ef7baae9b0b656298f29
app/test-pipeline: fix table hash LRU initialization

macro ‘APP_METADATA_OFFSET’ was not used to initialize
‘signature_offset’ and ‘key_offset’ part of struct
rte_table_hash_lru_params.
Instead integer offset values were directly used.

with this fix 'hash-8-lru', 'hash-16-lru', 'hash-32-lru' table types are
able to forward traffic as expected.

Fixes: 48f31ca50cc4 ("app/pipeline: packet framework benchmark")

Signed-off-by: Sankar Chokkalingam <sankarx.chokkalingam@intel.com>
Signed-off-by: Guruprasad Rao <guruprasadx.rao@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
app/test-pipeline/pipeline_hash.c