From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by dpdk.org (Postfix) with ESMTP id 2F2CE1B9C0 for ; Fri, 11 Jan 2019 13:04:33 +0100 (CET) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Date: Fri, 11 Jan 2019 13:04:30 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35B425CD@smartserver.smartshare.dk> In-Reply-To: <2601191342CEEE43887BDE71AB977258010D902799@irsmsx105.ger.corp.intel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [dpdk-dev] [RFC] function to parse packet headers Thread-Index: AdSncfX4daYkfyreRIS2nCcHGdzslwAHBykAAClcwwAAEOYbAAACSs8AADB+wQAAEDZsgAABYg2AAAHevqAAAN9K8A== References: <98CBD80474FA8B44BF855DF32C47DC35B425B1@smartserver.smartshare.dk> <98CBD80474FA8B44BF855DF32C47DC35B425B8@smartserver.smartshare.dk> <3446539.r5cUhzCBca@xps> <20190110161158.0177a203@hermes.lan> <73285400-c67b-48cf-88be-b20bb05b5484@solarflare.com> <20190111083547.btj6omdj7pp4aeqa@platinum> <2601191342CEEE43887BDE71AB977258010D902799@irsmsx105.ger.corp.intel.com> From: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= To: "Ananyev, Konstantin" , "Olivier Matz" , "Andrew Rybchenko" Cc: "Stephen Hemminger" , "Rami Rosen" , "Thomas Monjalon" , , "Yigit, Ferruh" , Subject: Re: [dpdk-dev] [RFC] function to parse packet headers 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: Fri, 11 Jan 2019 12:04:33 -0000 PiBGcm9tOiBkZXYgW21haWx0bzpkZXYtYm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