Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3385348lqp; Tue, 26 Mar 2024 07:53:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXMCv1BZzuM5pqiauui7mliH2AyWGcUA4i7KsaF8Tgy8PmQsan9gM39L/RD/aiIFAVoen7lZ/9i5HkgNEvQw3Vr80etmlnNqM/LCcHeqw== X-Google-Smtp-Source: AGHT+IGgNgtaQEyB8JR2e8LBAywC3LPUfuzHwPR9NdB/sMCdlMwcOrfqo1OA2G8FD76vHFVlxKh3 X-Received: by 2002:a05:6871:7503:b0:22a:28b3:3e9c with SMTP id ny3-20020a056871750300b0022a28b33e9cmr8738015oac.18.1711464824333; Tue, 26 Mar 2024 07:53:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711464824; cv=pass; d=google.com; s=arc-20160816; b=MSPzlOjJJGf7rX+71VFdvIWWnITXJrnUBDB5/MzgBVkRVHoNnPuYMGyRVTNWLO9BcQ 5fS3kHHU7cuw+JWm2JXvzc2ALS4X9Cmxx1UNXgdTjP3bO2W6c3xVisa1GD95r9E5l25z gAF2pYQRwHNRTLHx5xQfolCa4yiGg8vWOHDnmkJUBtDGwM+tlBtCF1aL2J1XsWVxl+fb KWbIegpB0yCXOQC8JSS4R5dgcyfh3b8m6PsXKRNW9CezA4Cz/ZQ8R3lYPJAJh1Ijt+FY t3UAU6tHuUuXdUTAyAu/3zJlbA/8FT00Ljdi0ke1JWrc/cJsc9C3YYXP3krp4OmrHltn bNiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=dVw2sCCZsjOclcEyJtFzLmGPKBY9n3k3XeHTRvzsKws=; fh=l6yMFl9pfM8oou+ddgr4ZN/jznk5cKsciVq8E6ssAsM=; b=xUUToO/xzid+86ybTNy0eLTz/0W+5jDuQHu2Wq9mcw+jtxFFIfZ2BzgZf3wJHSwvO5 Gr3naz9nnQFgwcEmLKTxsSgVosFMTQ4NI+zm7vvqvlrauPgF2EoVgNQBKlDT5qpXQ3cb 7olakQiY0rWltPArIgwSLcmCPOuj2/C5yFwA3iIB9bRvSNxRH9xmEdj5/akKVBsFm3yo ZzB3VVC6lcSxxMtktjT1wPXPfgfJ5b3MuydfGsdMDUWTJfbd6SAGAH/+n87OlZI++bVb h8fDmBJratdFTanlThpE39LLTOeAd3Ky6oOConySUO3Y9dZ549rPbp7wcwudAk8rBXDW ORmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=SqquaAIH; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-119207-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119207-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 b22-20020a63eb56000000b005e1c5c9a11esi9595612pgk.230.2024.03.26.07.53.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 07:53:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119207-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=@google.com header.s=20230601 header.b=SqquaAIH; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-119207-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119207-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 59E71B24E74 for ; Tue, 26 Mar 2024 14:47:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87E0913C683; Tue, 26 Mar 2024 14:46:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="SqquaAIH" Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 B0CB113C3FD for ; Tue, 26 Mar 2024 14:46:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711464413; cv=none; b=hKhJ+mVjuqrr0wIi4br5wBZvvK3Un66iAjfaTacVNW5eJn84Zugc9JCfK1X3vYQIOXTg36Pj/txrvVzQxJ4cqPK2LPRSsxfshn5Aff+BcHwJQaLCW4+U9hCUdoiQZQuqXzhs7RILUjpFZOKT+s1UDxiAgHf4ccM7jkb4wnU3A84= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711464413; c=relaxed/simple; bh=dVw2sCCZsjOclcEyJtFzLmGPKBY9n3k3XeHTRvzsKws=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=YANL3EKjnjkvjkW+20NBYr+dgGwwIUFn3qRe8XzqaigvV4ptPhPih+GLIX4UXL8riUXebQVWm2pF0okoI9fsCV84MghxpsRcg7uGGmVaErWrSh4XUiE1BJEVlqD570WojXkfCD1IMDbWzkcv95bdE8Fsh1iycXiUYVWZAIi3YfA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=SqquaAIH; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-56bde8ea904so14111a12.0 for ; Tue, 26 Mar 2024 07:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711464410; x=1712069210; 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=dVw2sCCZsjOclcEyJtFzLmGPKBY9n3k3XeHTRvzsKws=; b=SqquaAIHb4Yw0ver83CxpNmIiJbclD87OH/QF3hJGrsmwxOgo/Y+mbANkxY4BaPodx QC+4pcPW/4yXo8vc2uLyjF3EYuc7nsHRfyW/DESdmnrLy7lLs0ZgEeB/oK/4ycbXXAYb 40rahRzYpuT1EtuwIAFr3q2Dl1pmXqO5/8douSnwAR0916Bqk8HxEpreKjHi2/qKj8M7 AYBfM0m7CVcoM/FbyjZDXd4AwHo+xdYgFTOQ4M+Q4XYghIA3ZT3zHDHA25UivMeKHWAX UzDc+o1NvQ28V/OPDZexXg1+BSRef2+YIKmeviB4iTMBm/pVM9G+SYSwRQ336aesRCyr agxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711464410; x=1712069210; 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=dVw2sCCZsjOclcEyJtFzLmGPKBY9n3k3XeHTRvzsKws=; b=jr5zr1QAbhKmQmSyH1W73RyU+8X77R7s0g/f/eNl6fRemAbIEM8ryiGkIkuDkWVZdm O4UwuUblT4juJ3X898ysN8uoA95mTIed8TL337XtCtN/TebG/ADNhqU2HO1yTN7IOrcE TNoo6ojhBHB6mpaaTaEukY9WGxurUn1xGIkvlO5TN0eoSywWcKXfFpljcN1U9iGAu3jt jLajVG6YuLE3lnKB3IsMmBpmCb1XcdcDB2J3J0C2fCpJjOtBavHLfO8x476VF/WpyqVC vHsOVllZO98RoXRkHLxCj+j4oLEMDFsuQgruhEADK7FAGCx5OGXTQRr+qkboP3QaA9Zr 7ULQ== X-Forwarded-Encrypted: i=1; AJvYcCU1kv3utqvUfpdx8aSJ2TCYZ7xi29tKd6VwABDeAopHwswyr4/JXN59Yxma+IKkBOC0f0fIR4A4l1qgdmByJS+8revLKhnqlFLzljMj X-Gm-Message-State: AOJu0YweEuBMi02XCv0a/X4d8wXBF+RI1nxSQ3jhQrXBT0qrqIyGuMBE /e+JrozEAzyF3PwLAjxLHiMspBVJA+1GWFf+tYFzFFoEc3V0mR0GAuLfFhIiwOgGoOiWagEj02A jLs10zTynUDrpgmwlJu84+iZlD79BmMAhw6o/ X-Received: by 2002:a05:6402:7c2:b0:56c:9ae:274a with SMTP id u2-20020a05640207c200b0056c09ae274amr120016edy.7.1711464409816; Tue, 26 Mar 2024 07:46:49 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240325182543.87683-1-richardbgobert@gmail.com> <20240325182543.87683-5-richardbgobert@gmail.com> <46e0c775-91e7-4bf6-88f3-53ab5e00414f@gmail.com> In-Reply-To: <46e0c775-91e7-4bf6-88f3-53ab5e00414f@gmail.com> From: Eric Dumazet Date: Tue, 26 Mar 2024 15:46:35 +0100 Message-ID: Subject: Re: [PATCH net-next v4 4/4] net: gro: move L3 flush checks to tcp_gro_receive To: Richard Gobert Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, willemdebruijn.kernel@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Mar 26, 2024 at 3:43=E2=80=AFPM Richard Gobert wrote: > > Eric Dumazet wrote: > > On Mon, Mar 25, 2024 at 7:27=E2=80=AFPM 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 us= ed > >> currently only in tcp flows in GRO. > > > > I think this is a bug. > > > > GRO should not aggregate packets if their ttl/tos fields do not match. > > AFAIU, the only UDP flow where ttl/flush_id need to be checked is when > udp_gro_receive_segment calls skb_gro_receive - could you confirm / point > out if there are any other flows to which these flush checks may be > relevant? > > As I've discussed with Willem in v3 I prefer to fix this bug in a separat= e > series. I do not understand this patch 4/4 then. Why bother moving stuff in net/ipv4/tcp_offload.c if we plan to move it back to where it belongs ?