Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3386749rdg; Tue, 17 Oct 2023 13:05:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGYd/cW9QzkeqHSQaAH8a1Wr0PZLTVfJteh6NRpSVntRHdGUGSHJ8+lU/ddqhO/mPxhVS5o X-Received: by 2002:a05:6a21:4841:b0:129:d944:2e65 with SMTP id au1-20020a056a21484100b00129d9442e65mr3039074pzc.13.1697573129193; Tue, 17 Oct 2023 13:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697573129; cv=none; d=google.com; s=arc-20160816; b=dAEWlaBTUcD6tUTrf0zmcT7J3GwPOpuMSPO5ZstKSmQlLG6FfkZyTS47EZILQVVdYu aVY9WLk18kMiVg5WfqVxvUJU5vPS22ulHS+RWZ9k7+5bbIdy6KvNq3vKUR1RpYoyAt8j BGWWZp2LkFHiTFeEm5xJ9xMdncnaFjMCFISHGUeX2pCyD38KyqxgaTcyLOHctwFPNZpd G7tFYygq1LppYsYBLdBdefWf7XevLejjpP2zXZ6iKJSDnZgR+n9wWZLQyZ5WfGdH9EsX 0jDEim9aYZjWc8sC5lLzLrqdNaewu2makFOV6dPeoN/bHZ1AUEM5CvDdTuDqjdk9Ixpi FjCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=l3dnN1xLwT/HN+IEeV8R9e1YNNWdTofZ1r8ZMIKGZxg=; fh=R8wTOAcjbwXPiRBMoUabOK2N2+pt4mN81S9zl5sVxyU=; b=yXseVEd746rF7vThiomH/TwYE5UGh45ucb454/CwvEf13EUhdzr8AXctW4JELPTvr/ VjeRFOtZ3stlKj37UqP5JalVZXrUKclMcO5vKf0ZGcPkmDzUtTd36X4cTYIfzi+Z9sVY ps84ONpKGlPV7w+9mwYH/rRt5rsq8G6RptvIdca8Irl4RW/N2ye/SXDFdW1tUqQgjAm0 pD4WiC2REL9hOtqSyxxjnjZTgmcm28NJDf3x9SdKIEP2+eLXkuFgDBKY3boPaFlsVoak ULRRDKKToeWSq+oXsAFBdlvVqf7g/7w3SP0irlv5nn50A/Why7pzPPjOzgdbZsZHSElM 6Ysg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id k16-20020a637b50000000b005ac13df150dsi510383pgn.384.2023.10.17.13.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 13:05:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 19BFD801BE56; Tue, 17 Oct 2023 13:05:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344144AbjJQUEy (ORCPT + 99 others); Tue, 17 Oct 2023 16:04:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235090AbjJQUEK (ORCPT ); Tue, 17 Oct 2023 16:04:10 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:237:300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DE7F1980; Tue, 17 Oct 2023 13:02:24 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1qsqGV-0002eP-Ib; Tue, 17 Oct 2023 22:02:07 +0200 Date: Tue, 17 Oct 2023 22:02:07 +0200 From: Florian Westphal To: Yan Zhai Cc: netdev@vger.kernel.org, "David S. Miller" , David Ahern , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Aya Levin , Tariq Toukan , linux-kernel@vger.kernel.org, kernel-team@cloudflare.com, Florian Westphal , Willem de Bruijn Subject: Re: [PATCH v2 net-next] ipv6: avoid atomic fragment on GSO packets Message-ID: <20231017200207.GA5770@breakpoint.cc> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 17 Oct 2023 13:05:21 -0700 (PDT) Yan Zhai wrote: > Refactor __ip6_finish_output code to separate GSO and non-GSO packet > processing. It mirrors __ip_finish_output logic now. Add an extra check > in GSO handling to avoid atomic fragments. Lastly, drop dst_allfrag > check, which is no longer true since commit 9d289715eb5c ("ipv6: stop > sending PTB packets for MTU < 1280"). > - if ((skb->len > mtu && !skb_is_gso(skb)) || > - dst_allfrag(skb_dst(skb)) || My preference is to first remove dst_allfrag, i.e. do this in a separate change.