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 0A415A0487 for ; Fri, 5 Jul 2019 16:51:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7F6F51B9A9; Fri, 5 Jul 2019 16:51:40 +0200 (CEST) Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 433361B974; Fri, 5 Jul 2019 16:51:38 +0200 (CEST) Received: from lfbn-lil-1-176-160.w90-45.abo.wanadoo.fr ([90.45.26.160] helo=droids-corp.org) by mail.droids-corp.org with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hjPbl-00054P-IH; Fri, 05 Jul 2019 16:54:43 +0200 Received: by droids-corp.org (sSMTP sendmail emulation); Fri, 05 Jul 2019 16:51:34 +0200 Date: Fri, 5 Jul 2019 16:51:34 +0200 From: Olivier Matz To: Andrew Rybchenko Cc: dev@dpdk.org, Dilshod Urazov , stephen@networkplumber.org, stable@dpdk.org Message-ID: <20190705145134.lkmgj36xu524luto@platinum> References: <1560679802-20112-1-git-send-email-arybchenko@solarflare.com> <1561383962-27064-1-git-send-email-arybchenko@solarflare.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1561383962-27064-1-git-send-email-arybchenko@solarflare.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [PATCH v2] net: adjust layer 2 length on soft VLAN insertion 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" On Mon, Jun 24, 2019 at 02:46:02PM +0100, Andrew Rybchenko wrote: > From: Dilshod Urazov > > Layer 2 length must be updated after the prepend to mbuf to keep > the length right to be used by other Tx offloads. > > If the packet has tunnel encapsulation, outer_l2_len should be > updated. Otherwise l2_len should be updated. > > Fixes: c974021a5949 ("ether: add soft vlan encap/decap") > Cc: stephen@networkplumber.org > Cc: stable@dpdk.org > > Signed-off-by: Dilshod Urazov > Signed-off-by: Andrew Rybchenko Acked-by: Olivier Matz