Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp278802lql; Mon, 11 Mar 2024 02:22:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWwvLUA32fOAhCpWQ6WNp1bBeWn6xoIGW+4sdbvIsJWjFNw7w9U3RnALHfim39I6mOQtUPhVwrUmCtEiXU2fCmPR/MIcD2useIvOebkOw== X-Google-Smtp-Source: AGHT+IEzlhQn7x+Ao/Ik+aaMawVLuC01iAmg+csnQ0fSwP0JzJKxlDYqvwq1yV4p20Vd2pO2PIQf X-Received: by 2002:a05:6a20:9591:b0:1a1:72d2:1f4 with SMTP id iu17-20020a056a20959100b001a172d201f4mr4657224pzb.22.1710148937481; Mon, 11 Mar 2024 02:22:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710148937; cv=pass; d=google.com; s=arc-20160816; b=gMYsc4RrYg1TK0XTBZaQsABurcbY+MATr3jRZiy8URb6352z6t9mqAeaaYTyljqP7P QJ6Uff1YjXg+sOoV7jFN8RWbt9xYaVJ4FfS+0fpWF2CUaXet/JXhNOgF8twFbLZM85On xWg2zZeB/35HPHB4ERWPiZ+E6DBrmlel/wN/T8J4Q+xurWZWPneI39r7GwG38JHFib2q 6T7gKxAnVyDpMmdwQ/X7iEE9Jievm6pGWxOU75k88AGf4gh63LuuWTJN8C6UZcfYu14U VQuNCP+bwT+Q7Sj3parb/kde5AHyfkJfLF9uYF3YkXTV1+O5QVo647O9W2nHAs6HjLX7 13kA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to:subject :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=E+GcVXdcO9QKtnQAcCLqs2Ny4ab4g7aLnhL8kh6HOy8=; fh=vsHs6wgKEq/Kcn5KGLssItiYN9JkKaEV0a6BSa0TKTU=; b=l7Tev2xNBCERleqs3YBBpuxAmBe1vIPEe4Os9Zkt89LQ2u1vyHg8JTuM6MZ+jF5LrK d4HWHGMT0g3up3zMRL9xdhPjDFqdAwVYCiW6G1TOYBto8tAtrCVAgOQcXKpgkpAXQjZi qd+5FdTmk0G3Idp9aWldo2gpBOQrUuL8I3JGEln71Y3+WPWLsDiOKTlQVa4AW6VO/82v n7K+EyjcJn7glv/Eg9H3cvzJ39rULyhPJLGPrCGk3BPYg9LN/SoBoG0o0dlAUZieo9FI ixHLFViZNGVuTVDaRW+alXcDpzg5Esasayh/Za4geOLyXqxYHKF0YlNyQZad4Ks8pt0l 214g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b7warfEt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-98605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98605-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b3-20020a170903228300b001dd63e221c9si757895plh.543.2024.03.11.02.22.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 02:22:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b7warfEt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-98605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98605-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3E67FB20AF4 for ; Mon, 11 Mar 2024 09:22:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00B64179AD; Mon, 11 Mar 2024 09:21:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="b7warfEt" Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87F231642B; Mon, 11 Mar 2024 09:21:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710148898; cv=none; b=qaLBtuTZz39/W48pT5jRHr60cm04jOIoUiS5VWt2qpLv3wqlD3UuAtF3Z8F+y8s/qpd5+4Mb5K3nHJe+W6JSaYEhvNcHXnq5y7Z1f9Q0O53gD1iJgdPgfppGmWRhhLXtclAOTfyaFntYI8u+A6ntQNFEKorRagryWplR6Sopbq0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710148898; c=relaxed/simple; bh=GVbr1/fS1wvn76XTylvE5OL/EQRMM9H9ThuJC6BQ5A8=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=F3h2biVujuypC9jQiQKlnxwVmH7wesMMR2IkKDOZxWPKJIDJnLWTbZ5zaPOTX7eIHCctwa/kAghaVXFeiHj2ZuGVU0PaJ1E04a6LiKEWCdyNmD7WDMYQ03EZLQMuOQWDEr7DK/XYFWHmPAEAWU/b+kJsU5UEnHSQans2/b5YmpY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=b7warfEt; arc=none smtp.client-ip=209.85.208.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2d2505352e6so60550871fa.3; Mon, 11 Mar 2024 02:21:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710148895; x=1710753695; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:to:subject :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=E+GcVXdcO9QKtnQAcCLqs2Ny4ab4g7aLnhL8kh6HOy8=; b=b7warfEtX2LtRPifET499KeWBkg+Jbu/zU3oUuY9iZXwcYkLfLrGdqqAoKSqE87lgV sHMEVCkOdevuMZr3K5lxX/NoOz68PgigvW9nLWWj2jrtxQ8xALQ8xnJ7PHhdhOK5I9MK XE1aScZNktqXP2kG96FAaqujK71ys4/J/77wEgHyWxfOkfPa/GjXCM/u29WF+DzrbpOt 2j+ea0xtOUoTBGnOyNBcUL1bc97OwkUk/oyh5omYAFLmGb1lhZRkWkTwoNvRwp9BFG4Q /iJfgqxdrmesHDK+aWkHUpdlm9wm1t69bmnRuoKTLwb2as9QxjAwvyDVFhCv5SF3VrNa trhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710148895; x=1710753695; h=content-transfer-encoding:in-reply-to:from:references:to:subject :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=E+GcVXdcO9QKtnQAcCLqs2Ny4ab4g7aLnhL8kh6HOy8=; b=vSu2fJWH287nihGtxo6S5PXbgcXV1BFpoSugWAZu4iyYIMQUecNf6jNkEj5X+nTUwv TLAVUlNxLHDH/wSMTA7OfrTLT9bVuM1ONPYa2GktgKKttHYfTdc/zL4QR75YfenR4dhU IAVMiWmB1joUTVsxifhQM770NXkeLpa5i13mph69OV0OTvZOJwd2ORz6KoK97zgvwZ83 7oZqxRG58evAFIJRsiDv3eGLD5Alp24DJLbtDxShA0ESyxRoMIdPUheWgcBSwddyZZpB 8ngVZpjhd0WOeivAkryYC9IzwLqCS8Mhy2ud4/M0rkpt/rbE8JkfDlbE9htw5KWuMmXx 7jGQ== X-Forwarded-Encrypted: i=1; AJvYcCVkpS5PVU4/CLnGrULNFZr9zFyXmF2zFzV49AShDy4+Up7mAEC2LQ7bNhKK82Uzu9Bl2gApRRkxhqNUpuylBc5UHgI8UuUaPdQeRogqNd+p5Tuy9UQtkLTPEA+W0vLRfFzKmCslJglKiei+YFySgqF+Cbk74EaqQbCEoyI0QJmEPTNm/svv X-Gm-Message-State: AOJu0Yy8tAvOgemMxJZ2K0hne73HyIZoyOG1chGlj/4O90p3gI6WofD+ lubVFALVzlOqncvZhxNT0QbO3xH+TLH9Cc6vvkx2V50CJzjG7Y95 X-Received: by 2002:a2e:9487:0:b0:2d2:ad40:a7de with SMTP id c7-20020a2e9487000000b002d2ad40a7demr3875262ljh.20.1710148894406; Mon, 11 Mar 2024 02:21:34 -0700 (PDT) Received: from debian ([146.70.204.204]) by smtp.gmail.com with ESMTPSA id s11-20020a05600c45cb00b00413128042d0sm13672681wmo.48.2024.03.11.02.21.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Mar 2024 02:21:34 -0700 (PDT) Message-ID: Date: Mon, 11 Mar 2024 10:21:18 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH net-next v3 4/4] net: gro: move L3 flush checks to tcp_gro_receive To: Willem de Bruijn , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, dsahern@kernel.org, xeb@mail.ru, shuah@kernel.org, idosch@nvidia.com, razor@blackwall.org, amcohen@nvidia.com, petrm@nvidia.com, jbenc@redhat.com, bpoirier@nvidia.com, b.galvani@gmail.com, gavinl@nvidia.com, liujian56@huawei.com, horms@kernel.org, linyunsheng@huawei.com, therbert@google.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org References: <88831c36-a589-429f-8e8b-2ecb66a30263@gmail.com> <65ed8c9d8dc5a_193375294e6@willemb.c.googlers.com.notmuch> From: Richard Gobert In-Reply-To: <65ed8c9d8dc5a_193375294e6@willemb.c.googlers.com.notmuch> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Willem de Bruijn wrote: > Richard Gobert wrote: >> {inet,ipv6}_gro_receive functions perform flush checks (ttl, flags, >> iph->id, ...) against all packets in a loop. These flush checks are >> relevant only to tcp flows, and as such they're used to determine whether >> the packets can be merged later in tcp_gro_receive. >> >> These checks are not relevant to UDP packets. > > These are network protocol coalescing invariants. Why would they be > limited to certain transport protocols only? Thanks for the review, I'll fix the typos. I replied to Eric's comment about the relevancy of these checks for UDP.