Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp173045pxb; Tue, 15 Feb 2022 10:40:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwK5FLRoJuTqLVBGVGlYd3pdXgCtg/A/JqoFgTn/OTN3+VTptu+jw8MbWJLayhQ8f79yNSX X-Received: by 2002:a17:903:22d0:: with SMTP id y16mr37726plg.65.1644950417705; Tue, 15 Feb 2022 10:40:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644950417; cv=none; d=google.com; s=arc-20160816; b=WAZt1Pw4dtVDFb78rljN6OsBr6vNrrOa6ccKNOkNEMGQP+yavOIdP/QBL4BRFS/qU8 pVehwLztmIaM4rj8OWZUWAP122wkarp/VFZUg00jKBT317gXI1bX7NDL7JeB8Bi3pILY uYsl7E92yVFf2jRY+N0VVZUIyCcjSj1PgNwOAaGxbxd4P3nmhviNbYU9swqcuRcE6bPy tgffLvsAedKS7zArD5RK2c9z4mnJ4zZkkCuvkkYLzfDBsANoPyQoFT/gKqJopq4qbxUT fhXWQE5vZI+0gG2ncyAVYQt6aGG9jBYfW+by6cTJAxyUNV9HoeToXFg55IljYY4kzyEB oG/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=64ujAZGCy+wXFieA5/Bj8ZqtpVN9eii19Jh2KoGa8VQ=; b=MVTXYAkAaIKc6XhdsFa9NoCfT5QFifnpl54Jc2XXK7/LET6usnmfc/OtlrpatzWjYU gi059ha5TyRlIu5o51T9X3Y5tY+zrB616+x+jGR7pfCcdvGDFen2fHNu8k+9XNJmGfsT fPV50p1VkH4XvsA2BfPyEo0rHhLhIYyGsJRK4xLp4xEQlaUp2mLu0BX+QvNtptTqEWIC pQ2KbhBw/pcAx+rUtBUY7m429yYOng4PfRWcoZjxV7DPZrcIizn9P33k3mDCZOxGeXyd OQJuEDY6vVdQhvebQ9FZONzqMBfMgKi86HfFr8hQWK7E5MC+6XMnaYgkAfOqvu+0smDI 9yeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=L2GzMwlP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 142si27269486pfy.162.2022.02.15.10.40.01; Tue, 15 Feb 2022 10:40:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=L2GzMwlP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242162AbiBORHE (ORCPT + 99 others); Tue, 15 Feb 2022 12:07:04 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242164AbiBORHD (ORCPT ); Tue, 15 Feb 2022 12:07:03 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CABFBDE7D for ; Tue, 15 Feb 2022 09:06:53 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id i14so33182709wrc.10 for ; Tue, 15 Feb 2022 09:06:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=64ujAZGCy+wXFieA5/Bj8ZqtpVN9eii19Jh2KoGa8VQ=; b=L2GzMwlPsZ7uQ/GDO30qwxGgBGqGNVBqZLTl0CXEl3tlyoMniWdKzQPzNGWr9Zxt7/ S5EcncmoO3Vw6GI+9aYAF8XbQ2lw3eyls4FC+lu2pAGfHzvu7Ob9zAEnfKAY55nAZ6d7 12ZXoaI6kh9hCMmHJKPUPJWRfpf6aZb1MOCaA/opO4hgdQ7V4m3ZtnODWzCIGCLjzaPX 8pch32l9fJrzyx5tHBR80+hjG6gWW502dJ5O6nBV6jv+wteAuFr6DruQCRQ44Q7mlt0o yQp/0bUYoYSK3/5I6s8OVvcmzbUB0SR0uAoaemIRpTrOX7Vp8Q7iZY+iMwRGautRQehC 2LFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=64ujAZGCy+wXFieA5/Bj8ZqtpVN9eii19Jh2KoGa8VQ=; b=CqMIGINtUU1EXO1HVBD4TOekI/EREDoQmpz5M9Sy2vvwtOsal7YPcLeJ68mJOhR+7s ZnIihwgO7fXHzk4AdhxgYbcPx0rJcN+K7oH3+SM7n/5t7pzdAtN9KuJS95E145xLuYu3 rJc+DjE2/uIkZOXgUo7W0bxDLZQUa7VrKOR7gxSpwsBh5pSgBMqySkNkHIKXe78NZmpa UYzaU7UzjbICh2zGM7jY3FQTS+A+hpclUywMHRiLKF1kuFIIdYNRdJ524zS6H2iRp0QM 4+dNKReRJ0PD6epuKsuiyqkfP2Y67FXuE5xRtbFjvoD7/COI6iLkHDMsuDj9u4A+yxFQ KUPQ== X-Gm-Message-State: AOAM532Oqjtn8SHWNu+gl48ibjujIIOqHFhJnUmaNAUwk5DzxtQ2aZ5z s/QzNA6foiQDwydQa6Y70ZL3zDzfdk0x/qXvVkxudw== X-Received: by 2002:a5d:47cf:: with SMTP id o15mr3959105wrc.412.1644944811535; Tue, 15 Feb 2022 09:06:51 -0800 (PST) MIME-Version: 1.0 References: <20220213150234.31602-1-thomas.liu@ucloud.cn> <42554FCB-9180-4B32-B5CF-6D3236237D99@ucloud.cn> In-Reply-To: From: Eric Dumazet Date: Tue, 15 Feb 2022 09:06:39 -0800 Message-ID: Subject: Re: [PATCH] gso: do not skip outer ip header in case of ipip and net_failover To: Willem de Bruijn Cc: Tao Liu , David Miller , Hideaki YOSHIFUJI , David Ahern , Jakub Kicinski , "Samudrala, Sridhar" , Network Development , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 15, 2022 at 7:46 AM Willem de Bruijn wrote: > > Stuffing state in the skb has been a mistake I think. > > If we could unwind those skb inner_* fields (and reclaim the skbuff > space!) that would be fantastic. Not sure we can easily remove the space, many networking drivers need them, we probably do not want to dissect packets in their ndo_start_xmit() > > Immediately for this bug: perhaps it can be fixed by resetting the > network_header on the gso skb if segs == NULL. As the offset is stored > on the stack. It seems correct. Any other fields we need to take care of ?