From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 25E9068F2 for ; Fri, 23 Sep 2016 15:47:36 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP; 23 Sep 2016 06:47:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,381,1470726000"; d="scan'208";a="172395762" Received: from ubuntu.ch.intel.com ([10.2.63.184]) by fmsmga004.fm.intel.com with ESMTP; 23 Sep 2016 06:47:34 -0700 From: Guruprasad Rao To: dev@dpdk.org Cc: sankarx.chokkalingam@intel.com, cristian.dumitrescu@intel.com, jasvinder.singh@intel.com Date: Fri, 23 Sep 2016 06:54:50 -0700 Message-Id: <1474638890-64618-1-git-send-email-guruprasadx.rao@intel.com> X-Mailer: git-send-email 2.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 23 Sep 2016 18:59:36 +0200 Subject: [dpdk-dev] [PATCH] app/test-pipeline: Fix table hash lru initialization X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Sep 2016 13:47:36 -0000 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 Signed-off-by: Guruprasad Rao --- app/test-pipeline/pipeline_hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-pipeline/pipeline_hash.c b/app/test-pipeline/pipeline_hash.c index f8aac0d..0e369a2 100644 --- a/app/test-pipeline/pipeline_hash.c +++ b/app/test-pipeline/pipeline_hash.c @@ -190,8 +190,8 @@ app_main_loop_worker_pipeline_hash(void) { .n_buckets = 1 << 22, .f_hash = test_hash, .seed = 0, - .signature_offset = 0, - .key_offset = 32, + .signature_offset = APP_METADATA_OFFSET(0), + .key_offset = APP_METADATA_OFFSET(32), }; struct rte_pipeline_table_params table_params = { -- 2.5.0