From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E8986A057B; Wed, 1 Apr 2020 20:48:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 659611C125; Wed, 1 Apr 2020 20:48:41 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id A3EE31C121 for ; Wed, 1 Apr 2020 20:48:39 +0200 (CEST) IronPort-SDR: TMuxWS6uYqMTIXMxC/gp4jNnnkxqLqdZLsU1W0ZOixeqP5UnsQqlznnHiv0wI6XxUKsA1Rg5nM yfbEWEV89FRg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2020 11:48:38 -0700 IronPort-SDR: iC9l4XTmwYHEhfKiOvAcEsQXFqu9SZTlt8F19mhVmLPyjddIbMYw83QeDoQbRP2aWq8mzoNepO eT4iGw9V9SDQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,332,1580803200"; d="scan'208";a="273273253" Received: from irsmsx105.ger.corp.intel.com ([163.33.3.28]) by fmsmga004.fm.intel.com with ESMTP; 01 Apr 2020 11:48:37 -0700 Received: from irsmsx603.ger.corp.intel.com (163.33.146.9) by irsmsx105.ger.corp.intel.com (163.33.3.28) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 1 Apr 2020 19:48:36 +0100 Received: from irsmsx605.ger.corp.intel.com (163.33.146.138) by irsmsx603.ger.corp.intel.com (163.33.146.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 1 Apr 2020 19:48:36 +0100 Received: from irsmsx605.ger.corp.intel.com ([163.33.146.138]) by IRSMSX605.ger.corp.intel.com ([163.33.146.138]) with mapi id 15.01.1713.004; Wed, 1 Apr 2020 19:48:36 +0100 From: "Medvedkin, Vladimir" To: Ray Kinsella , "dev@dpdk.org" CC: "Ananyev, Konstantin" , "Richardson, Bruce" Thread-Topic: [dpdk-dev] [PATCH 2/6] fib: make lookup function type configurable Thread-Index: AQHV9hB9qmU5DuCRpkS5PNIWnctaIahj1T2AgADoM8A= Date: Wed, 1 Apr 2020 18:48:36 +0000 Message-ID: References: <1583757826-375246-1-git-send-email-vladimir.medvedkin@intel.com> <1583757826-375246-3-git-send-email-vladimir.medvedkin@intel.com> <4994f785-9c48-8c34-e9d5-fd4a53d5321a@ashroe.eu> In-Reply-To: <4994f785-9c48-8c34-e9d5-fd4a53d5321a@ashroe.eu> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.2.0.6 dlp-product: dlpe-windows x-originating-ip: [163.33.253.164] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 2/6] fib: make lookup function type configurable 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" SGkgUmF5LA0KDQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBSYXkgS2luc2Vs bGEgPG1kckBhc2hyb2UuZXU+IA0KU2VudDogV2VkbmVzZGF5LCBBcHJpbCAxLCAyMDIwIDY6NDgg QU0NClRvOiBNZWR2ZWRraW4sIFZsYWRpbWlyIDx2bGFkaW1pci5tZWR2ZWRraW5AaW50ZWwuY29t PjsgZGV2QGRwZGsub3JnDQpDYzogQW5hbnlldiwgS29uc3RhbnRpbiA8a29uc3RhbnRpbi5hbmFu eWV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