From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 00CA59587 for ; Wed, 21 Oct 2015 14:50:43 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 21 Oct 2015 05:50:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,711,1437462000"; d="scan'208";a="832107827" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga002.fm.intel.com with ESMTP; 21 Oct 2015 05:50:40 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t9LCI6ZF021612; Wed, 21 Oct 2015 13:18:06 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id t9LCI6QR000781; Wed, 21 Oct 2015 13:18:06 +0100 Received: (from jasvinde@localhost) by sivswdev02.ir.intel.com with id t9LCI6Wu000777; Wed, 21 Oct 2015 13:18:06 +0100 From: Jasvinder Singh To: dev@dpdk.org Date: Wed, 21 Oct 2015 13:18:03 +0100 Message-Id: <1445429886-599-4-git-send-email-jasvinder.singh@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1445429886-599-1-git-send-email-jasvinder.singh@intel.com> References: <1444744652-573-1-git-send-email-jasvinder.singh@intel.com> <1445429886-599-1-git-send-email-jasvinder.singh@intel.com> Subject: [dpdk-dev] [PATCH v3 3/6] app/test: modify app/test_table_combined and app/test_table_tables 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: Wed, 21 Oct 2015 12:50:44 -0000 From: Fan Zhang Tests have been updated to work on added key_mask parameter for 8-byte key extendible bucket and LRU tables. Signed-off-by: Fan Zhang --- app/test/test_table_combined.c | 5 ++++- app/test/test_table_tables.c | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/test/test_table_combined.c b/app/test/test_table_combined.c index 18daeec..8bf4aeb 100644 --- a/app/test/test_table_combined.c +++ b/app/test/test_table_combined.c @@ -418,9 +418,9 @@ test_table_hash8lru(void) struct rte_table_hash_key8_lru_params key8lru_params = { .n_entries = 1<<24, .f_hash = pipeline_test_hash, - .seed = 0, .signature_offset = APP_METADATA_OFFSET(0), .key_offset = APP_METADATA_OFFSET(32), + .key_mask = NULL, }; uint8_t key8lru[8]; @@ -479,6 +479,7 @@ test_table_hash16lru(void) .seed = 0, .signature_offset = APP_METADATA_OFFSET(0), .key_offset = APP_METADATA_OFFSET(32), + .key_mask = NULL, }; uint8_t key16lru[16]; @@ -596,6 +597,7 @@ test_table_hash8ext(void) .seed = 0, .signature_offset = APP_METADATA_OFFSET(0), .key_offset = APP_METADATA_OFFSET(32), + .key_mask = NULL, }; uint8_t key8ext[8]; @@ -662,6 +664,7 @@ test_table_hash16ext(void) .seed = 0, .signature_offset = APP_METADATA_OFFSET(0), .key_offset = APP_METADATA_OFFSET(32), + .key_mask = NULL, }; uint8_t key16ext[16]; diff --git a/app/test/test_table_tables.c b/app/test/test_table_tables.c index cf7c62d..b6364c4 100644 --- a/app/test/test_table_tables.c +++ b/app/test/test_table_tables.c @@ -669,7 +669,8 @@ test_table_hash_lru_generic(struct rte_table_ops *ops) .f_hash = pipeline_test_hash, .seed = 0, .signature_offset = APP_METADATA_OFFSET(1), - .key_offset = APP_METADATA_OFFSET(32) + .key_offset = APP_METADATA_OFFSET(32), + .key_mask = NULL, }; hash_params.n_entries = 0; @@ -784,7 +785,8 @@ test_table_hash_ext_generic(struct rte_table_ops *ops) .f_hash = pipeline_test_hash, .seed = 0, .signature_offset = APP_METADATA_OFFSET(1), - .key_offset = APP_METADATA_OFFSET(32) + .key_offset = APP_METADATA_OFFSET(32), + .key_mask = NULL, }; hash_params.n_entries = 0; -- 2.1.0