From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 351968E5D for ; Tue, 13 Oct 2015 15:57:36 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 13 Oct 2015 06:57:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,678,1437462000"; d="scan'208";a="809951019" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga001.fm.intel.com with ESMTP; 13 Oct 2015 06:57:34 -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 t9DDvX37013281; Tue, 13 Oct 2015 14:57:33 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id t9DDvX5q000635; Tue, 13 Oct 2015 14:57:33 +0100 Received: (from jasvinde@localhost) by sivswdev02.ir.intel.com with id t9DDvXRP000631; Tue, 13 Oct 2015 14:57:33 +0100 From: Jasvinder Singh To: dev@dpdk.org Date: Tue, 13 Oct 2015 14:57:28 +0100 Message-Id: <1444744652-573-5-git-send-email-jasvinder.singh@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1444744652-573-1-git-send-email-jasvinder.singh@intel.com> References: <1444744652-573-1-git-send-email-jasvinder.singh@intel.com> Subject: [dpdk-dev] [PATCH v2 4/8] 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: Tue, 13 Oct 2015 13:57:36 -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 | 4 ++++ app/test/test_table_tables.c | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/test/test_table_combined.c b/app/test/test_table_combined.c index dd09da5..359ac45 100644 --- a/app/test/test_table_combined.c +++ b/app/test/test_table_combined.c @@ -419,6 +419,7 @@ test_table_hash8lru(void) .seed = 0, .signature_offset = 0, .key_offset = 32, + .key_mask = NULL, }; uint8_t key8lru[8]; @@ -477,6 +478,7 @@ test_table_hash16lru(void) .seed = 0, .signature_offset = 0, .key_offset = 32, + .key_mask = NULL, }; uint8_t key16lru[16]; @@ -594,6 +596,7 @@ test_table_hash8ext(void) .seed = 0, .signature_offset = 0, .key_offset = 32, + .key_mask = NULL, }; uint8_t key8ext[8]; @@ -660,6 +663,7 @@ test_table_hash16ext(void) .seed = 0, .signature_offset = 0, .key_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 566964b..cc222f1 100644 --- a/app/test/test_table_tables.c +++ b/app/test/test_table_tables.c @@ -651,7 +651,8 @@ test_table_hash_lru_generic(struct rte_table_ops *ops) .f_hash = pipeline_test_hash, .seed = 0, .signature_offset = 1, - .key_offset = 32 + .key_offset = 32, + .key_mask = NULL, }; hash_params.n_entries = 0; @@ -766,7 +767,8 @@ test_table_hash_ext_generic(struct rte_table_ops *ops) .f_hash = pipeline_test_hash, .seed = 0, .signature_offset = 1, - .key_offset = 32 + .key_offset = 32, + .key_mask = NULL, }; hash_params.n_entries = 0; -- 2.1.0