From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 7896A8D96 for ; Sat, 26 Sep 2015 00:33:58 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 25 Sep 2015 15:33:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,588,1437462000"; d="scan'208";a="813400569" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 25 Sep 2015 15:33:16 -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 t8PMXFF7015200; Fri, 25 Sep 2015 23:33:15 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id t8PMXF4v013678; Fri, 25 Sep 2015 23:33:15 +0100 Received: (from fanzhan2@localhost) by sivswdev02.ir.intel.com with id t8PMXFD4013673; Fri, 25 Sep 2015 23:33:15 +0100 From: roy.fan.zhang@intel.com To: dev@dpdk.org Date: Fri, 25 Sep 2015 23:33:08 +0100 Message-Id: <1443220392-13434-5-git-send-email-roy.fan.zhang@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1443220392-13434-1-git-send-email-roy.fan.zhang@intel.com> References: <1443220392-13434-1-git-send-email-roy.fan.zhang@intel.com> Subject: [dpdk-dev] [PATCH 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: Fri, 25 Sep 2015 22:33:58 -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