Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3520067rdg; Tue, 17 Oct 2023 18:58:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHxos/Itoy4L14aCzDgpj4so7iQv9+FMi1cxFQ1dMHAle3sSQEEXVEcwQQ8m9ZOZjiD2awe X-Received: by 2002:a05:6830:1605:b0:6bd:b29:85d3 with SMTP id g5-20020a056830160500b006bd0b2985d3mr3429199otr.24.1697594309524; Tue, 17 Oct 2023 18:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697594309; cv=none; d=google.com; s=arc-20160816; b=pizsgPW6LfYvP3RC5nycZvmRzxGbOKpj9o7yDCGN13GzQ1FMznW4hXdBabWIJMVOrY JHwciCZvGHXsGzyBZsKaXSrulmWucAIBxgaIwj0vZVl0R+L4r99iQPs4jxEq7pBzLPCN Ur6Q66L7Qul+9g0HnKDeLkzADK1WtZsu/7rO1NQCBws0vYaC8LJF7+EBVzSUtnoVkAAy LRs0I5RcBUIsxHyZyeWqqwNyxd1lQ6eOy4saxbqPuCz36vRDmEOqnnCaaaA5WvzNSQE1 yrQsva2M5GpCtxlJh0GHmfZx1bLAjunL2eah49wsZhmBacICek3lEoY4BCR9h7cEKODu 7G+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=zrBkKk/OhaMOdfc+Pvuh6DSNNjTaKia2Rbq4gj7RLNE=; fh=q7uCAPMfdsVC808STz1llcNW+EmjT5GgKzQ2iSDDncE=; b=BTMYSj5pUl7QoANnYulLhR1LP/9/I48XZn0e6ecRT91jv7f9FiteTP54Xgxp3L85Mm UEIV+EWA6AqCBdzbpF8jHEkXW3F6E5XqNS05idURRJ+THkDFvwiXauYy3stq8MB3iBbl ob4dx/bSkRr8MUpyEeWUv9jAgNnGmVWAtGLxzU2HGbq9CP4nUyg/cNEBNdlBwax2tstK eYXFi0ZlsVYG8CF0s/sYPjBeqVS3wpGf1NRA2yYwG9Olh4dBELwgjpxE6eMA/g03r4b3 deXfaxw8EnH1mvFsPgc/75z7W6sZTIA1Oluht46BzXSae4Nc/UzWE//vuqiSQqYdQpDM AKiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=B4Y++f7H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id d24-20020a637358000000b005ab6142f1besi1056307pgn.169.2023.10.17.18.58.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 18:58:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=B4Y++f7H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4275480FCBC8; Tue, 17 Oct 2023 18:58:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229475AbjJRB6O (ORCPT + 99 others); Tue, 17 Oct 2023 21:58:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjJRB6N (ORCPT ); Tue, 17 Oct 2023 21:58:13 -0400 Received: from mail-vk1-xa2f.google.com (mail-vk1-xa2f.google.com [IPv6:2607:f8b0:4864:20::a2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3DACF7; Tue, 17 Oct 2023 18:58:11 -0700 (PDT) Received: by mail-vk1-xa2f.google.com with SMTP id 71dfb90a1353d-49dc95be8c3so2818112e0c.0; Tue, 17 Oct 2023 18:58:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697594290; x=1698199090; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zrBkKk/OhaMOdfc+Pvuh6DSNNjTaKia2Rbq4gj7RLNE=; b=B4Y++f7HPiQ/pzsHFl13dkAWhjJ8WLl1d6pY1o5TaSvConj1+cyvRTAagxRE6chPQb XBcmEEeDrIlrrKBf3TEQFiYgkDCJfkpkhOsPvqbBU5OniIvlhUdzBtLy5RjXETFGKwnA 2egdHVVC/rpuxCTftTBw1jMkr6UHi6521Cl2p6pXKA8ZhxwSuqcM7yEbmt5yVW+2vQB6 PK2sWFD4WWMYMlRSiYBREL3owbKzLn7jR8XBzEAvDPgB2d8n+ec3XoeZLXNVHYZWjqxD QehyCpSufKNpD9L1ot0ukTNB7ZT6PwOUJsDKe44Aomsa1FvVEhI4Or6N3mc7CtJxmHLh MXmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697594290; x=1698199090; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zrBkKk/OhaMOdfc+Pvuh6DSNNjTaKia2Rbq4gj7RLNE=; b=mOdqK7Ax/5n2oCTPvkKoryYD5363uDlXkUV1JQi/c5mbUeRKci2OAFwMsGRs3m+lHR svqbEFkIftr9yWeK9mXKlgm/MkmjmVkERgZDGmORjP+oMX8QBqhxWoWJ/OhlLRx9FJwI rkeYG/8CK1H5BJCub8ijmu+JNlUONAOvd/ZAdyyDCNxnzFNPj1cnaRtPsDx/DNOVUSLx wHpWejrjcCJ+hwRJ+F4meWfqaftfIhJdECOIhZ+Rk5lr0SUKMIMBQYm0hp/jWu9R6Jwf /vMAVvwx8X3eNudYWotuExOQ+HAEEk8iQpNkis4anDGuDsYoCZ/2oFhQu1c6LXoPzTed d5MQ== X-Gm-Message-State: AOJu0YwBigmoELb5RdUcWHlw+5cnk+/XOjRSOeubig9bnzGtZb4k9RAW bviIWaHqyK+XgJKd0zobVuP6YOCTVLMKK/WCY0w= X-Received: by 2002:a1f:abc1:0:b0:49d:d3dd:fa40 with SMTP id u184-20020a1fabc1000000b0049dd3ddfa40mr3724461vke.5.1697594290608; Tue, 17 Oct 2023 18:58:10 -0700 (PDT) MIME-Version: 1.0 References: <20231017200207.GA5770@breakpoint.cc> In-Reply-To: From: Willem de Bruijn Date: Tue, 17 Oct 2023 21:57:34 -0400 Message-ID: Subject: Re: [PATCH v2 net-next] ipv6: avoid atomic fragment on GSO packets To: Yan Zhai Cc: Florian Westphal , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 fry.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 (fry.vger.email [0.0.0.0]); Tue, 17 Oct 2023 18:58:27 -0700 (PDT) On Tue, Oct 17, 2023 at 9:42=E2=80=AFPM Yan Zhai wrote= : > > On Tue, Oct 17, 2023 at 3:02=E2=80=AFPM Florian Westphal w= rote: > > > > 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 che= ck > > > 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. > > You mean completely removing all dst_allfrag references and related > stuff such like IP cork flags/socket flags? I was debating, it might > be cleaner that way but it does not fit so well with the subject of > this patch. I can open a new patchset to clean that up separately. For > this one, I guess I can keep dst_allfrag for now and come back with a > V3. Does that sound good to you? The second paragraph in the commit message really makes clear that this combines three changes in one patch. Of which the largest one in terms of code churn is supposed to be a NOOP. Separating into three patches will make all three more clear. They can be pushed as one series, conceivably.