From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [RFC] function to parse packet headers Date: Thu, 10 Jan 2019 16:11:58 -0800 Message-ID: <20190110161158.0177a203@hermes.lan> References: <98CBD80474FA8B44BF855DF32C47DC35B425B1@smartserver.smartshare.dk> <98CBD80474FA8B44BF855DF32C47DC35B425B8@smartserver.smartshare.dk> <3446539.r5cUhzCBca@xps> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Thomas Monjalon , Morten =?UTF-8?B?QnLDuHJ1cA==?= , dev@dpdk.org, olivier.matz@6wind.com, arybchenko@solarflare.com, ferruh.yigit@intel.com To: Rami Rosen Return-path: Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by dpdk.org (Postfix) with ESMTP id 467891B96B for ; Fri, 11 Jan 2019 01:12:06 +0100 (CET) Received: by mail-pf1-f172.google.com with SMTP id q1so6068516pfi.5 for ; Thu, 10 Jan 2019 16:12:06 -0800 (PST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 10 Jan 2019 03:03:24 +0200 Rami Rosen wrote: > Hi, Morten, > > > And regarding avoiding code duplicity, I'm pursuing Olivier about merging > packet header validation into rte_net_get_ptype() instead of writing a > separate function. > > > This seems also a good alternative. > +1 > > Regards, > Rami Rosen > +1 All drivers that don't have hardware support for getting l2/l3 and ptype information should be calling rte_net_get_ptype() already.