Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3712385pxb; Mon, 9 Nov 2020 20:07:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/uDDvRM1lDI3XnXTQRBqUBZLULzt1ZiIX6+pc13vVH+B7Sc8hHgnx+9LmcEqcptl26ekR X-Received: by 2002:a17:906:9414:: with SMTP id q20mr17889498ejx.384.1604981223542; Mon, 09 Nov 2020 20:07:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604981223; cv=none; d=google.com; s=arc-20160816; b=ObA5t4xHDfnQfa/HIPfa+Bu0PSZneErFarltUj+ah7PSQ6ZN+9rO0a5X2koFc+lzpz D+QwIV8cSAVx401m8T5vB0kPSfm+XSgvt1ihs47Qj6tQ6Hj64ZtRD020tSf2OqlXs2MJ Uur9KjtiHc6RdKH8RnBIEtpoWa08PMvhecgn3fhTtnqdCy1VGSk517HPShTNyxNC6z1b a6nsUiPse1Kw/lQtdSd7MGZ0W7CFWRWIJ/IaGJwcBUdjQtDufHx1qnb4cNTgo4xvTcL4 7F0++S9olKBcVovqLw1somcV/XMBewKxCjF9clGzF94MlqJlAxcJvSxowph2iF03G7Q2 q9RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=osscDMFpADr7KeMqNYxK7TxjcZqAiE84SipYHACeH/g=; b=sdBA7GJ8Qt034OxRTfQLPHNLs1F1Azf6RyBaxHJ3tkyS0/DmFmxkk7fVQYAPL+vkXj F9vQXKBOxFKZkwJ1gqLEjMxj9Bth68EfDENbDRH+jh8kNwiQ+12wGd+KdzOq7tEhPFGh 3Qapb+R35YRqmCFjVce+fQUm+YseW9YI+/LS+h5L3hgttrOXlpG32xdOWjrACebpxLWU j7q4usbtJt1Cx9kNWE+bQH2Dc8OYvUF+qiNQ0gbxrKWXGbVFs6/VpuvP1pa/EQvnBL2A gzgUgXompuYyTzp63QJydJEUmiesde3ARRh40+5V/bLd87m07z9ptcAeojdL/TR0d1gp hiTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uFkj2Z4F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id me16si8282920ejb.454.2020.11.09.20.06.40; Mon, 09 Nov 2020 20:07:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uFkj2Z4F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733150AbgKJEFZ (ORCPT + 99 others); Mon, 9 Nov 2020 23:05:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:36944 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732780AbgKJEFY (ORCPT ); Mon, 9 Nov 2020 23:05:24 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 35F1E20663; Tue, 10 Nov 2020 04:05:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604981124; bh=XjcPe3ZKvGYixKKcUDGjtRvK8+Tci2+e6h+hX1vPkDo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uFkj2Z4FiElp+nwW9KGVBgAFzFDc8YUEaX5ArV8ABbnGyzNI7Hrp7Z/gaxYr0aU2u zejxHoKDswDKNIGawAmw+kVcrBdmsyImUir8jfOrnLYIpkZmGfH/gr2j7YFx5q64QL 7KJtQkq/nZRsSnFmF0w/HwBtxwtR2y2V0BZBp5fY= Date: Mon, 9 Nov 2020 20:05:22 -0800 From: Jakub Kicinski To: Alexander Lobakin Cc: "David S. Miller" , Eric Dumazet , Miaohe Lin , Martin Varghese , Pravin B Shelar , Willem de Bruijn , Guillaume Nault , Al Viro , Florian Westphal , Steffen Klassert , Paolo Abeni , Yadu Kishore , Vladimir Oltean , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 net-next] net: skb_vlan_untag(): don't reset transport offset if set by GRO layer Message-ID: <20201109200522.7a8fdecf@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <7JgIkgEztzt0W6ZtC9V9Cnk5qfkrUFYcpN871syCi8@cp4-web-040.plabs.ch> References: <7JgIkgEztzt0W6ZtC9V9Cnk5qfkrUFYcpN871syCi8@cp4-web-040.plabs.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 09 Nov 2020 23:47:23 +0000 Alexander Lobakin wrote: > Similar to commit fda55eca5a33f > ("net: introduce skb_transport_header_was_set()"), avoid resetting > transport offsets that were already set by GRO layer. This not only > mirrors the behavior of __netif_receive_skb_core(), but also makes > sense when it comes to UDP GSO fraglists forwarding: transport offset > of such skbs is set only once by GRO receive callback and remains > untouched and correct up to the xmitting driver in 1:1 case, but > becomes junk after untagging in ingress VLAN case and breaks UDP > GSO offload. This does not happen after this change, and all types > of forwarding of UDP GSO fraglists work as expected. > > Since v1 [1]: > - keep the code 1:1 with __netif_receive_skb_core() (Jakub). > > [1] https://lore.kernel.org/netdev/zYurwsZRN7BkqSoikWQLVqHyxz18h4LhHU4NFa2Vw@cp4-web-038.plabs.ch > > Signed-off-by: Alexander Lobakin Applied, thanks!