Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1924050lqa; Tue, 30 Apr 2024 03:32:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXdDLUGEV1h+e89+JG7B6zEwsAq9QCcfdr8Pxmox9aPYMDIJhHrHp6ZTBr/l+as1Ehv32cYbSpy1kxwcxcfLTy8pqEkgRt2fazzFGvU+Q== X-Google-Smtp-Source: AGHT+IFw1ZXeF4gNo/cUxKM+ybfk6zWgKb1IkfaxATEBYzeCL+UxeCXL0x9i8T+8ZNllU6AZ5gWi X-Received: by 2002:a05:6a00:7106:b0:6f3:e6d6:7ff5 with SMTP id lh6-20020a056a00710600b006f3e6d67ff5mr8222815pfb.22.1714473130682; Tue, 30 Apr 2024 03:32:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714473130; cv=pass; d=google.com; s=arc-20160816; b=rKGnPY90CmrL1u08Ka0NxLfHb7E3bHwJzcqhFzcHAPVHjq+DC7KZXgSWHd+T/HSe1G ytRNHSEFfD/JZE/gybZ/pD4Tajgh6DPR6sd2sI1gSwyIAyFHLluWU9pktRhtWoP0M3+F XOthdDKOE6d8LMVk69moNjbNIw6u6jPsAQlWQfWp4hfmJsgWG/nlKbe89q6tZfKou2Fl XzGJZ1U8ZxqaV7G7ge3HxVfNsHkIx3GPUyrhZn1yyS5aigxu6tIxS+rrl9krwhtM4wrV WCyxEkWAs5gCx1lKv/ZDtoDUvrf98K2c79xKicVz+BZqO12pEgP/Px2oRBbOzZzOrH6J nlmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=h2GbztPPgBy7pklRNmyoZeFa1LsX3EFvPdCRgPdDry8=; fh=j8+q45FEqdZask2cStnks5ezpIhvsglZKC5CaZKzOhk=; b=qF1Y9ZOYpREjtd8lB/5rObXXYWX1YZCXXjKHzGxDa5adYPVmCABFSs8faXV3r0Yt7m vR91igUVmNncG1DyLIenJIXCa4iT+W+xgk7JNJRXT3eFPvR5Wl8BnXlT1/4AxdSt+EAX ZcGG9Jg7FTFXZ0ef59SS3QZ0h3pb3/kFUNcx7sVnEGsO4AyK6jq3h69yi8XRPujdCiGH SR0E3+3+RkGOuPJOryjDQtXjYN52lucqqybjY7tJd9KQj890qmo4YJhwd7PdBns1XUYQ k3WqypnJOC0ywL8CgEytVyfAdLXAzZoYRZ5dj/xB/k+53uU/37RnOo9RGJ+Q3oh1VuGU Js1w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gKYgjWjE; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-163774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163774-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id fh23-20020a056a00391700b006ed41e29bffsi21826886pfb.224.2024.04.30.03.32.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 03:32:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gKYgjWjE; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-163774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163774-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 9078CB21B00 for ; Tue, 30 Apr 2024 10:31:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D42612C520; Tue, 30 Apr 2024 10:31:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gKYgjWjE" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7341B12C49C for ; Tue, 30 Apr 2024 10:31:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714473083; cv=none; b=Q1xX9AT/9BzuNBIjfjWb1r5B2RHhdMFpt0iKXi+R/Igeu7V6YrTohFdGfZd4kG08aDf7FII0SHFAjcOSruXpoDjQtJaWwUvyMI6bvZ6H9GID7tqU7ZE7HeMCrRbiLap8MKxzC01qNcna3fDx+zrdUE/tbIpQXwVk6BoN5EfkVx8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714473083; c=relaxed/simple; bh=ljw03fQaJwNAPt45c5cOrae5aDZjWuANUhBxMaIT5qk=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=pTdPWvGIjZx3BpkorpZpijihIamm7WZan72dRsAC80I7/kQw7T5dER4ZEJzEiM86v7oOsGxP4MgII5aqpEF/OiYp9U/P9JC1llLTx+wO8DCkdXRaSYrxNHm6RJiD4kGeEMNaW53kQWXhghpivXk7p5S8s2DYs9f/jkyMJdj5OGY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=gKYgjWjE; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714473080; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=h2GbztPPgBy7pklRNmyoZeFa1LsX3EFvPdCRgPdDry8=; b=gKYgjWjEVolPg3ghgeeB/3MzmgTYdJd7PRAMFL8CD6ihxhngktcBDb/YiveH+is11cU8me B/MehcSZKOUKLsrm90e4bprH8l0Iw/zu+pab89hXpo/MZs8a8RWSnkEnE0UgfWP2mzWfI7 3mzK1+iF9BrG6WWU7f1B1sIF1Zwol1s= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-644-rkn53f70NzivQinvzzdPBw-1; Tue, 30 Apr 2024 06:31:18 -0400 X-MC-Unique: rkn53f70NzivQinvzzdPBw-1 Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2dac626d43cso3507961fa.2 for ; Tue, 30 Apr 2024 03:31:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714473077; x=1715077877; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=h2GbztPPgBy7pklRNmyoZeFa1LsX3EFvPdCRgPdDry8=; b=aufmepbzvjRLUcOI3y8NZ9LmakoNS6Vh35am0+DdcIwb8n/KzJbrrrqt/f1VscY2Tw 3AX86DUqmzc9OYoINiB+qswFEjexEcxm63TsK4M8HwHizgDpFmnL1O67Xx7xiEkUDctc iqv8QilT06aUc+YO9LQQctY7r5gbnBmvRu0IXwMJFYf3G6Im/kNTqT4buQ5x/esD3w7J 8cxXfK7peE6g2k4o6p1gwjRMK1LiW6cXLDS/4THVX2vjGZ45W+hIIH4LtQGgYH/NYSGu 03bZvqTNBDEz98K+e1lGoxvc5J7UbgHqzn+FJSDUN6E3F6M3ikK5E40r7EKx14U/rVTm rLNw== X-Forwarded-Encrypted: i=1; AJvYcCVz56fenyE2AC4noUhDvFVWNvHvt0XoqTjRNUN50xDa8mLWbIUEcB7CS5dLm2tBrE42FobEOVBVT1rWb5mwdGZA9F0nEHfatHYdiwrt X-Gm-Message-State: AOJu0YzKOdzp+Z7ZuI/BYg9CaxhU9dfKV03lOnY6pPX/XkDJoME/y0SF mGYoP2b8S4TXzPK6xk3c2Ft4E/ALQ60VZtAQyp+3FKYKPoqb6kSQd5dVZT1vyi25I4ytrSg2XlP jpV4LOcsLEIi6mrkiHGB2BLwO1ay7MfNRWztVNzcs6UnmpaLK82eSYrnMZFqfSQ== X-Received: by 2002:ac2:5bcc:0:b0:513:ec32:aa89 with SMTP id u12-20020ac25bcc000000b00513ec32aa89mr8408521lfn.2.1714473077305; Tue, 30 Apr 2024 03:31:17 -0700 (PDT) X-Received: by 2002:ac2:5bcc:0:b0:513:ec32:aa89 with SMTP id u12-20020ac25bcc000000b00513ec32aa89mr8408502lfn.2.1714473076862; Tue, 30 Apr 2024 03:31:16 -0700 (PDT) Received: from gerbillo.redhat.com ([2a0d:3341:b0ae:6a10::f71]) by smtp.gmail.com with ESMTPSA id l2-20020a5d5602000000b0034d117df264sm4798470wrv.114.2024.04.30.03.31.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 03:31:16 -0700 (PDT) Message-ID: <18dee53b6ae7cd75196141e4c5d8984bc0f3296f.camel@redhat.com> Subject: Re: [PATCH v4 net-next v4 6/6] net: add heuristic for enabling TCP fraglist GRO From: Paolo Abeni To: Felix Fietkau , netdev@vger.kernel.org, Eric Dumazet , "David S. Miller" , David Ahern , Jakub Kicinski Cc: willemdebruijn.kernel@gmail.com, linux-kernel@vger.kernel.org Date: Tue, 30 Apr 2024 12:31:14 +0200 In-Reply-To: References: <20240427182305.24461-1-nbd@nbd.name> <20240427182305.24461-7-nbd@nbd.name> Autocrypt: addr=pabeni@redhat.com; prefer-encrypt=mutual; keydata=mQINBGISiDUBEAC5uMdJicjm3ZlWQJG4u2EU1EhWUSx8IZLUTmEE8zmjPJFSYDcjtfGcbzLPb63BvX7FADmTOkO7gwtDgm501XnQaZgBUnCOUT8qv5MkKsFH20h1XJyqjPeGM55YFAXc+a4WD0YyO5M0+KhDeRLoildeRna1ey944VlZ6Inf67zMYw9vfE5XozBtytFIrRyGEWkQwkjaYhr1cGM8ia24QQVQid3P7SPkR78kJmrT32sGk+TdR4YnZzBvVaojX4AroZrrAQVdOLQWR+w4w1mONfJvahNdjq73tKv51nIpu4SAC1Zmnm3x4u9r22mbMDr0uWqDqwhsvkanYmn4umDKc1ZkBnDIbbumd40x9CKgG6ogVlLYeJa9WyfVMOHDF6f0wRjFjxVoPO6p/ZDkuEa67KCpJnXNYipLJ3MYhdKWBZw0xc3LKiKc+nMfQlo76T/qHMDfRMaMhk+L8gWc3ZlRQFG0/Pd1pdQEiRuvfM5DUXDo/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QhRgemQSkhfNaP9LqR1XKujlTuUTpoyT3xwAzkmSxN1nABoutHEO/N87fpIbpbZaIdinF7b9srwUvDOKsywfs5HMiUZhLKoZzCcU/AEFjQsPTATACGsWf3JYPnWxL9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Tue, 2024-04-30 at 12:23 +0200, Felix Fietkau wrote: > On 30.04.24 12:12, Paolo Abeni wrote: > > On Sat, 2024-04-27 at 20:23 +0200, Felix Fietkau wrote: > > > When forwarding TCP after GRO, software segmentation is very expensiv= e, > > > especially when the checksum needs to be recalculated. > > > One case where that's currently unavoidable is when routing packets o= ver > > > PPPoE. Performance improves significantly when using fraglist GRO > > > implemented in the same way as for UDP. > > >=20 > > > When NETIF_F_GRO_FRAGLIST is enabled, perform a lookup for an establi= shed > > > 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. > > >=20 > > > Here's a measurement of running 2 TCP streams through a MediaTek MT76= 22 > > > 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. > > >=20 > > > rx-gro-list off: 630 Mbit/s, CPU 35% idle > > > rx-gro-list on: 770 Mbit/s, CPU 40% idle > > >=20 > > > Signe-off-by: Felix Fietkau > > > --- > > > net/ipv4/tcp_offload.c | 32 ++++++++++++++++++++++++++++++++ > > > net/ipv6/tcpv6_offload.c | 35 +++++++++++++++++++++++++++++++++++ > > > 2 files changed, 67 insertions(+) > > >=20 > > > diff --git a/net/ipv4/tcp_offload.c b/net/ipv4/tcp_offload.c > > > index 87ae9808e260..3e9b8c6f9c8c 100644 > > > --- a/net/ipv4/tcp_offload.c > > > +++ b/net/ipv4/tcp_offload.c > > > @@ -407,6 +407,36 @@ void tcp_gro_complete(struct sk_buff *skb) > > > } > > > EXPORT_SYMBOL(tcp_gro_complete); > > > =20 > > > +static void tcp4_check_fraglist_gro(struct list_head *head, struct s= k_buff *skb, > > > + struct tcphdr *th) > > > +{ > > > + const struct iphdr *iph; > > > + struct sk_buff *p; > > > + struct sock *sk; > > > + struct net *net; > > > + int iif, sdif; > > > + > > > + if (!(skb->dev->features & NETIF_F_GRO_FRAGLIST)) > >=20 > > Should we add an 'unlikely()' here to pair with unlikely(is_flist) in > > *gro_receive / *gro_complete? > Not sure if unlikely() will make any difference here. I think it makes= =20 > more sense in the other places than here. Why? AFAICS this will be called for every packet on the wire, exactly as the code getting this annotation in patch 3/6. > > Should this test be moved into the caller, to avoid an unconditional > > function call in the ipv6 code? >=20 > The function is already called from tcp4_gro_receive, which is only=20 > called by IPv4 code. Also, since it's a static function called in only= =20 > one place, it gets inlined by the compiler (at least in my builds). > Not sure what unconditional function call you're referring to. Right you are. I just got fooled by my hope to reuse the same function for ipv4 and v6. Please just ignore this last part. Cheers, Paolo