Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1928270lqa; Tue, 30 Apr 2024 03:42:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDahbY7eRZwjnQNdzKZGXFhbusvbpe2Vl5TNysKkoiAbuTGl1U4gU9HYucEHoaiOOMj6LN4HnSc/fdCHBEE9kLHnw7gka7MNm131VbzQ== X-Google-Smtp-Source: AGHT+IG5Um+2JqkugCbmM6XFh/iyxmNLInBb+DDw2owDK67wLCHgUWo51U11QEt9+V1iNQyZFdgk X-Received: by 2002:a50:954b:0:b0:572:3bcc:8370 with SMTP id v11-20020a50954b000000b005723bcc8370mr9568063eda.0.1714473725091; Tue, 30 Apr 2024 03:42:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714473725; cv=pass; d=google.com; s=arc-20160816; b=R0WxifS9WoRo0D6RNWukB6O9py+mlHcwQy+OzEgnxCAuA+O4BVFYPXWW0k+fohxQQ5 2R6OBp2RrnLXh7n5m2Fje3kkKLRjMsa5Ysa/1e5t8QXQ1s3R1w4zhk5mddE94VtTdI6x JEUX123lNcgwifLiHTA39UivunwPb7ye+P360xHVZ3ApuIZAOAQsqAaz7v/571mYHqOH FkujgAWpuOCE9IQl4PIfAvURt9A1ukNMOh3ex8psVtGLErUvc2J7FoKhvUEsj6GcmFfS vn1B0vH1Daf7sno5kbpGHgCgQE6wqk+mGScNno1ZprdINOAoAnCH8QGC6q0BsT+Schmj Kb8g== 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=LMlLVgBu7y+Z1UA7TogJJjdkdi56Sm40tXjGRA7ggLo=; fh=xgibEmhyz99lttEjSmnj64NZ0T18xRizxeFgS0xbCE0=; b=RP7++/Qpe4y80LEVwj4ExFRXCS+dzEMK4aYpRGCNTBIdH7EhB2zjvNPxFSDmy/6jgR IDWs0ZDEc9VYfGlvWklsmKPwbHhSKgqubxEnsjmHReb9gaNZVwcLBKGi0qYGj14D/+Qe 98Pd8zZzV7fmezgu8c9bLwst4Bv99neSfn/LnbZ4miwX72+nuWRywoqzaf9zlKLZk8gE ATEdlDYBk3MI+32oYYUswFdDX2FFly5PjLAQNqmE4j1uXvAszmvaF+Y/BnqFYFJXUVOO BAyHXfBd2y0DWF9W6OslRhAvProi/++7TKMpf5x79TFZIzqf1alTg0w1DumvgLh6BgqX 2kUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=r36se5dJ; 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-163776-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163776-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y20-20020a056402441400b0057230f86fa8si7964687eda.126.2024.04.30.03.42.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 03:42:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163776-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=r36se5dJ; 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-163776-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163776-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B84FF1F253E4 for ; Tue, 30 Apr 2024 10:34:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FE2612C46E; Tue, 30 Apr 2024 10:34:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="r36se5dJ" Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 222DD12BF17 for ; Tue, 30 Apr 2024 10:34:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714473242; cv=none; b=sEARfFl10ZTZASYAKaFxA9EadtRTGbCrP+lQaeOvSAwfKuK7fWClGSpu6How0s2V/tynfFG3XnJx6MUh1M03BTROFPCqDCveOLGBlTuS0iYq8SLepHWbS76VMpS3kSypix19f/D7iU9ueInL+JaeL7DDwKl/NneOrD9KruHf/24= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714473242; c=relaxed/simple; bh=uFm8Qgi91vGI3dt8K6sPdGExsyb2lsag5x2vqkD5m0o=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=n1lHHOGhQfbpdEMAZqYmwdU4aHSt9t7FpdIkZ3V6x/noTGduJ1KR9czHPR919cKzgCTHXxwFHLWwSYZeBinPag2NQUDnsLeBxZ3swSZN6fudrnYA9YY3UrI6soQMop64S72mJaqB3vQKT/mnJiYyR1N85h7ifcAngSLsDHvQ3yg= 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=r36se5dJ; arc=none smtp.client-ip=209.85.208.48 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-f48.google.com with SMTP id 4fb4d7f45d1cf-5724736770cso8435a12.1 for ; Tue, 30 Apr 2024 03:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714473239; x=1715078039; 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=LMlLVgBu7y+Z1UA7TogJJjdkdi56Sm40tXjGRA7ggLo=; b=r36se5dJQCKGcfsiBB0KPc2qk55NDdx4AomEXEz65ZfuiGL7KOqwsyGy4d0l7bpWHZ KMF/XxGGXsq2Sp23VFet/2II3wMcf2+aW2wDlQDoxNES2itHGeaHmpu4UyRZnlOfs/hr b9UW2W3Slatz9A+Tg0m4xxieq3k+dDgYjwcgxN60OmVOm9aH2ohbkATvhHR7qLGYdhsZ BXTM5/gmahUf1BQb0mwK8hpGjmFC68ZZ0R+BqAzEoICQoO3c2TgaT6c5Tyt80tNgAojB w8qad0Ip9OLmBGitCify/6AIO1lNYptdp4+gjACkXIFgPxHAzk7yzIDd+r2M1Z4iuAp1 //dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714473239; x=1715078039; 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=LMlLVgBu7y+Z1UA7TogJJjdkdi56Sm40tXjGRA7ggLo=; b=EsUqYwhZjumEL8bpwqBYMwN8EFolJgVNQ9QbL0SUEY4Ub+l/ZX6A/ugCVwIZewChRr Dva5+ScM5r0m6IwFd6flNUPcQkV9bZuWfimXwqsB0UM41otgREtjK/qJQcjROYKMSgCA xjNDtpOcb1LcnaSqugGBLDDKV4D1Yki8GFKpb4nXuR0+yTzZANrs6yISh+AWTeJmc1SX /fkAWwnxo3pXdyzQznHxgXBoesx0E038TjrvSaHFV+jcPsZHO4Ugp0MjyKAQAf44wkMN nCCFGZwtyXgDJF5TV/5KK8d3E6xyI3MJjgXs6oo+YtYqyhxPqdxCtezwzM12hU9bSZzq 2N3w== X-Forwarded-Encrypted: i=1; AJvYcCVJs6/BsHpb1PklJ+6hUsKQGB6jstmQQd3bdV7D+KfBaHLyLTCqhOs8KxiKcp3f1b/WMje6l5Ss6Az2qbAS8QfQA0ooxFH7jMFd+4AS X-Gm-Message-State: AOJu0YwjLaVm0KeVVRXXsLs0Pl/9OqtlbPSNBpJZYgzX6s8NekH13J6b Wkf0tEhy2RxnsdRY4S6c28InS4pHwbMuDUND2KsXQ8atHL/ct7mxqm/2FoJJedYNafNv+ldUzTv iRVXVs50AOWKfN2n/G3l+1b6yGZtnLBgyVtBi X-Received: by 2002:a05:6402:1cb9:b0:572:a1b1:1f99 with SMTP id cz25-20020a0564021cb900b00572a1b11f99mr12520edb.1.1714473239040; Tue, 30 Apr 2024 03:33:59 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240427182305.24461-1-nbd@nbd.name> <20240427182305.24461-7-nbd@nbd.name> In-Reply-To: <20240427182305.24461-7-nbd@nbd.name> From: Eric Dumazet Date: Tue, 30 Apr 2024 12:33:47 +0200 Message-ID: Subject: Re: [PATCH v4 net-next v4 6/6] net: add heuristic for enabling TCP fraglist GRO To: Felix Fietkau Cc: netdev@vger.kernel.org, "David S. Miller" , David Ahern , Jakub Kicinski , Paolo Abeni , willemdebruijn.kernel@gmail.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Apr 27, 2024 at 8:23=E2=80=AFPM Felix Fietkau wrote: > > When forwarding TCP after GRO, software segmentation is very expensive, > especially when the checksum needs to be recalculated. > One case where that's currently unavoidable is when routing packets over > PPPoE. Performance improves significantly when using fraglist GRO > implemented in the same way as for UDP. > > When NETIF_F_GRO_FRAGLIST is enabled, perform a lookup for an established > socket in the same netns as the receiving device. While this may not > cover all relevant use cases in multi-netns configurations, it should be > good enough for most configurations that need this. > > Here's a measurement of running 2 TCP streams through a MediaTek MT7622 > device (2-core Cortex-A53), which runs NAT with flow offload enabled from > one ethernet port to PPPoE on another ethernet port + cake qdisc set to > 1Gbps. > > rx-gro-list off: 630 Mbit/s, CPU 35% idle > rx-gro-list on: 770 Mbit/s, CPU 40% idle > > Signe-off-by: Felix Fietkau Reviewed-by: Eric Dumazet Thanks