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 537FC4CC3 for ; Wed, 1 Aug 2018 03:40:13 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jul 2018 18:40:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,429,1526367600"; d="scan'208";a="250655880" Received: from orsmsx102.amr.corp.intel.com ([10.22.225.129]) by fmsmga006.fm.intel.com with ESMTP; 31 Jul 2018 18:40:11 -0700 Received: from orsmsx105.amr.corp.intel.com ([169.254.2.59]) by ORSMSX102.amr.corp.intel.com ([169.254.3.209]) with mapi id 14.03.0319.002; Tue, 31 Jul 2018 18:40:06 -0700 From: "Wang, Yipeng1" To: Michel Machado , "Wiles, Keith" , "Fu, Qiaobin" CC: "Richardson, Bruce" , "De Lara Guarch, Pablo" , "dev@dpdk.org" , "Doucette, Cody, Joseph" , "Gobriel, Sameh" , "Tai, Charlie" Thread-Topic: [dpdk-dev] [PATCH] hash table: add a bucket iterator function Thread-Index: AQHUJpuIvVZn3TGPwk+UdIhd8WkN66SmpQeAgAHFNVCAAOfaAIAAk50AgAAJ7ICAADAgoA== Date: Wed, 1 Aug 2018 01:40:06 +0000 Message-ID: References: <20180728174851.46422-1-qiaobinf@bu.edu> <5CCC4983-8B4F-480B-B6E1-3A01806BC416@intel.com> <7E249D4F-3CAA-4EDB-936D-4DFAEA55F0D8@bu.edu> <8a2eb96f-bf40-a6af-c22c-072f915e063e@digirati.com.br> In-Reply-To: <8a2eb96f-bf40-a6af-c22c-072f915e063e@digirati.com.br> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZTJmYmM5ZmQtMDY4ZC00Yzg1LTkyN2MtOTJjMDZjM2NhZjg5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiNFJya0VcL2dOdnA0Tk5nMkZFYVZ2WG1vM1wvZTJ1alNsd0R3K0dCUFRSaDhHbVJsMWhKYjNwR3ZSWlZFcnFLdVhEIn0= x-originating-ip: [10.22.254.139] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] hash table: add a bucket iterator function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2018 01:40:14 -0000 SGksDQoNClRoYW5rcyBmb3IgZXhwbGFpbmluZyB0aGUgdXNlIGNhc2UuIEkgbm93IHVuZGVyc3Rh bmQgYW5kIEkgYWdyZWUgdGhhdCByZXBsYWNpbmcgc3RhbGUgZW50cmllcyBkdXJpbmcgaW5zZXJ0 aW9uIGlzIGFuIGludGVyZXN0aW5nIGFuZCB1c2VmdWwgYWRkaXRpb24gdG8gdGhpcyBsaWJyYXJ5 LiANCg0KTXkgY29uY2VybiBpcyBzdGlsbCB0aGF0IGl0IG1heSBiZSBub3QgYSBnb29kIHByYWN0 aWNlIHRvIGV4cG9zZSB0aGUgYnVja2V0aXplZCBzdHJ1Y3R1cmUgb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