From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] ixgbe: fix wrong packet type for VxLAN & NVGRE Date: Fri, 08 Apr 2016 22:33:50 +0200 Message-ID: <132741628.p6QkLo90Ee@xps13> References: <1460103024-20369-1-git-send-email-wenzhuo.lu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Wenzhuo Lu Return-path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 9184F2B89 for ; Fri, 8 Apr 2016 22:33:52 +0200 (CEST) Received: by mail-wm0-f44.google.com with SMTP id n3so35910337wmn.0 for ; Fri, 08 Apr 2016 13:33:52 -0700 (PDT) In-Reply-To: <1460103024-20369-1-git-send-email-wenzhuo.lu@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-04-08 16:10, Wenzhuo Lu: > VxLAN & NVGRE are supported by x550. As we know HW can parse > the packet and tell SW the type info. For VxLAN & NVGRE packets > there's some change. HW will not tell SW the info of the outer > header but the inner header instead. But we always take the > info as it's for the outer header. So the packet type info is > not right when x550 receives VxLAN & NVGRE packets. > > As x550 only supports IPv4 VxLAN & NVGRE packets, we can tell > the outer header of VxLAN is IPv4 + UDP, and the outer header > of NVGRE is IPv4 only. What we don't know is if there's > optional field in the outer IPv4 header. > > This patch implement the support of packet type for VxLAN & > NVGRE. And it fixes the wrong packet type issue either. > > BTW: > It doesn't fix any existing commit as although it resolve an > issue it's more like a new feature but not a fix. > > Reported-by: Konstantin Ananyev > Signed-off-by: Wenzhuo Lu Applied, thanks