Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3515504rdg; Tue, 17 Oct 2023 18:42:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGlDTIobvvNehgb2wSibQBWdJoq9jhPff0l2rA7xYrIwrwG6OKQxw1O57qtG2zOmVtk8h3Q X-Received: by 2002:a0d:de04:0:b0:591:15a6:c11f with SMTP id h4-20020a0dde04000000b0059115a6c11fmr3259447ywe.50.1697593343476; Tue, 17 Oct 2023 18:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697593343; cv=none; d=google.com; s=arc-20160816; b=vrnUdSnu8hjERW0EWGO80615DWivkgz+KhqDfusCrPqS/dZFPXYN8hhOZsY4roedhm o4XanI6B1B+PyScwK6PKYgmYaWgyHpe4nfput1uJoCNgxCzhKIrRVLJ0iHs+CymtcNrY XnbLZbYhYVmdM8X4Syl0GAUHaf+pdmfdUdrAXzcoZmNA4ITvNZKw8qxyqY2DSHBA8X/g kRx/wLjtDTkrMHz7x/ZLhdrE4TS1HI1JH9++quI+b+Q9caNrffCisBCcLlXo50yjVnqw vqdFLQ392cX6LstKrsaFjam/mX5YMcMYJEVzfRppVnJmFmtQXo8+HsPCdUWcQ98Mt7Hi 2efA== 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=+p3zAg2hk+LlovhYL960eGIcLbSht6mtod7PgLUjGSE=; fh=bLONr8KSx20TELOTXqfAkVr3/OCgY9ZP+0xbX0R5F+Y=; b=YI0ggToMxFmNMbWw0LgwSXadL5dAPjKexZ1pSOma2Pt5Z2OscIU5V1ebNlAblui6rX Lhfaw0ezQ8odPP9Iy5GGm9SF7Nb42agY0F7XmMXg/jseIqOMJyr1Z/zxQA8K0cAGUfhX y/9eQblf/osXjBaUhUhb+3XS48wyHamBborli98kd4Qk+N7sWrhT3jTWkK5RFP7UJaa0 nGBsaLHg69cYweX2DGC1bv12OrH00oF3n5mpzWFrjeYO1xQok1VVOM5K1jjNOcecMcmB rc0MV24Jxwkri668719RvkfD1sYh9Yl+PEuNKTsnyP2DBO7tk1lh5M8kFrYPRcVu2Cj6 B8dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google09082023 header.b=IfY1yEGx; 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=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id g2-20020aa796a2000000b006be329230ebsi2764752pfk.284.2023.10.17.18.42.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 18:42:23 -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=@cloudflare.com header.s=google09082023 header.b=IfY1yEGx; 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=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7A9FD80FC17A; Tue, 17 Oct 2023 18:42:20 -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 S1344371AbjJRBmG (ORCPT + 99 others); Tue, 17 Oct 2023 21:42:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344264AbjJRBmF (ORCPT ); Tue, 17 Oct 2023 21:42:05 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EFC3C4 for ; Tue, 17 Oct 2023 18:42:03 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-53e04b17132so10371879a12.0 for ; Tue, 17 Oct 2023 18:42:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google09082023; t=1697593321; x=1698198121; 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=+p3zAg2hk+LlovhYL960eGIcLbSht6mtod7PgLUjGSE=; b=IfY1yEGxkC3VDJ1YyD5S2SnX+P3GeESKoryOeBIQNA2H0BrI7/KK1YmG0+kmT1mJRB YJZHIMeS+I2FRLIKgINY9fBXlqB7ymPLTMOqOEB2J3mX9+ijfwABRikLTh2Sx6/m7Ekh 84guw0DFtkzLgTHXaoTg88pKHs9HOp4LDLc7+Mmc9FJrkdSrX3nchkOpKSOp20n2WAhr AwMWe0vfpf/XXauPX1+AYYcNAN4RMChJMEememojso7lSwnVrU0qjjxOCQEodRTTIFVt sIdd9KxgeIWAfhQqxWQyp6Tl0XFGcpwCniGsAvlOqO/Vqp+cjvKPuAxXyGKtm/m+UPJq O56A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697593321; x=1698198121; 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=+p3zAg2hk+LlovhYL960eGIcLbSht6mtod7PgLUjGSE=; b=GBRTXwCddmfe3L4QqX+6QW04f/LfaKMh9164l6RYHIKTurKPGK2pAZul/RYTr2itGl h3bFjofjjrjIaXSaRZCe+3WjEWZIiPNCieLTEJA2JaC2OsW0qHwRRyUa+0In5TrMBnhq tpKJN2wZqtNy+3aAYYK/vGzl3De4ciD9jomRj8lTPvIaGaEptmR7brDGKRSrf+4ru01L gaTuX6Al+zn4eNPwN8w2rhS5bJIRDlbktPAgJTs86DNSIUxkaowY5jz+jpnoOCIUxXui x80r4VJsAD6b1oWRFIk74izPOpKS2n9ZUAt4Eu5zUp6OYOdgYpFwa3kLbEmGo1FGu2dK +54w== X-Gm-Message-State: AOJu0YxYb3xXydPhVDvUZScD2nUFQhKN5trNz/JMz/n0QWNckxekl8x/ HCG2twXRNhyXq1znRQ0LF7H8HrPZEiLyo+mhV+QRKQ== X-Received: by 2002:a05:6402:274b:b0:53d:e0cf:cb95 with SMTP id z11-20020a056402274b00b0053de0cfcb95mr3582614edd.21.1697593321529; Tue, 17 Oct 2023 18:42:01 -0700 (PDT) MIME-Version: 1.0 References: <20231017200207.GA5770@breakpoint.cc> In-Reply-To: <20231017200207.GA5770@breakpoint.cc> From: Yan Zhai Date: Tue, 17 Oct 2023 20:41:50 -0500 Message-ID: Subject: Re: [PATCH v2 net-next] ipv6: avoid atomic fragment on GSO packets To: Florian Westphal 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, Willem de Bruijn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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:42:20 -0700 (PDT) On Tue, Oct 17, 2023 at 3:02=E2=80=AFPM Florian Westphal wro= te: > > 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. 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? Yan