Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp121396lqf; Fri, 26 Apr 2024 01:14:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWXcDxCw+ekruwhkPHOjEmfg58Qn1KWQrl9Z92W6LsKBIl/7SIkr+lRgM5Wm25edoPfdeekK8jliP2a9tsGvcpUFB7pFYL7mJ62hITD9g== X-Google-Smtp-Source: AGHT+IH2X4Je8y5RJV/xUm+J7JyRPEKv3x02MeNkQ1mgSLBBQ6pOiY2VN3eA5SjpJ8jR+TZ03i0Q X-Received: by 2002:ad4:5d41:0:b0:6a0:83a5:deaf with SMTP id jk1-20020ad45d41000000b006a083a5deafmr3114794qvb.29.1714119262876; Fri, 26 Apr 2024 01:14:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714119262; cv=pass; d=google.com; s=arc-20160816; b=ODQg1uf/uwIZDqCJpwevCxzHue/PWuygQfIGqEincy2DiJgpFjy7Tkega5E4bV4jQc wJXs/CaBgWEnggqqMpkWSUkezem4Q7Q/9AfvoA9zUT3wYXxxez1490pkEzSbi4fFvGBD 8lKTqeOO9v+sarQu+D4Qr2t0LMefiU65zJpRSrnrG57eJ7yzVVYa2SH5RW7I2hcFCH6E DSdyYpIjka1jtLoYpOsypn8oMaWz61FM713jSYtsc38K6b3GQc4lwR9bPBGjUmUdT4dP GtfnGrvUTMUkjXYKHxFkwfaDWuLVJ5Ye0MFpfQd6Bz1ep79drWYDEm/GvxwNskNl7AYx 1Unw== 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=BDqpBO7omNT7QL5cCt7YADimwVUvaeaLukFM/JMfaDQ=; fh=Ugk5lW+pFBCf+R/sVHHtC4E1MmctoZhTsMcK/fxXdxQ=; b=oXECIu/WOlxghQORtG0o9gHJ9tRpQ1zhvlVn6dl3sn3BXOCWrA31PilMIe1Q+dYe12 TprMFX+48J1GiMg+wAodiyOdaZOX6hl7IfTyoBWPB/wBMyZRIG852agEI+Y+Suygoo3x uybN0PJI3wlQ5z9hDEMXqW0IUL4OGwrACdPevgLK4ZX2dhDvd5/vFxrD0SIUIK/QpODF ghFfNGD0bZoQcdHW40F7wYsk3Fi0jHhVNUKAQ9vSP2NeoVzUfI6XId5gN2rjlb9WKo+C RrfTL9/FZ35b+OPOuASAJx8dhg66KMuHTQR6XGHNuCBUryrMxjdxa8shz2uKOj516/sc wIrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bMfa19Vb; 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-159681-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159681-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g1-20020a0562141cc100b006a085e4a654si9654335qvd.352.2024.04.26.01.14.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 01:14:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159681-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bMfa19Vb; 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-159681-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159681-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 72BA71C21E26 for ; Fri, 26 Apr 2024 08:14:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C4E9013C9AE; Fri, 26 Apr 2024 08:14:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="bMfa19Vb" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 3C28313C915 for ; Fri, 26 Apr 2024 08:14:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714119254; cv=none; b=mhl6jd4EgLxQQE/hccv3zikIm+54SyPPrQG/gHma5hSebYPz3m5WUf4Iu+PqgF6kmRgsYq5QibuEwZYfg9r8KJTi7EnI1GGjqN6Wn7Mgz6O4JgHaGFDaMk+C/xJsm/1c7xrdF106b+dzZCEFg3o/tQf2g4OJ9tg8FUclPcE9Nr0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714119254; c=relaxed/simple; bh=xnukKj82afXd616up3SVX4P1lCt0MFKwpZCZY6Zyco8=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=CIgQjj/qsKxqzMXUTx8VK8A8ELz2IZ18VQpigEQKru23uR98GZChvwpBYiN2EKbhdlGoOXDpoGYCOedfahfm02SHklKiyppAtXArP2ur8T86e7iYeTNLIBm7x59ezU+D8/l9U2YjT6dh/YUhQ1OV4chv+grvHpOELtOICPnnJSM= 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=bMfa19Vb; arc=none smtp.client-ip=170.10.129.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=1714119252; 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=BDqpBO7omNT7QL5cCt7YADimwVUvaeaLukFM/JMfaDQ=; b=bMfa19Vbk+Sz0pw3kmGAwXJjMzIpjJYq4gcTV0FPabfFINcQh6vRYiohNOUeYUVUHqv0cE IjX2U7qCHLAy1itPRdO1yG/YnXuWrYX8YIpa2gJs8u4Ls+mlKDWGJ2wN7uUvUHRNr3TJ14 Tiq6QmS40oadNRbU1zrxFgc33+5+QXU= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-677-J4rtdXY7OdWpk8OoaWm_2A-1; Fri, 26 Apr 2024 04:14:10 -0400 X-MC-Unique: J4rtdXY7OdWpk8OoaWm_2A-1 Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-519669141f7so252971e87.2 for ; Fri, 26 Apr 2024 01:14:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714119249; x=1714724049; 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=BDqpBO7omNT7QL5cCt7YADimwVUvaeaLukFM/JMfaDQ=; b=HkpuxfJbjuC5vEzs124ymy0gB0MdzNjIiJyTXT0fmkQqSra7wdiMk0KC7Myp6Wee5U 5yUbNQ4N/FoqJu9QW9Vp2VUz6rjT+raWeWH2YI1r+IDqy4tPWRHvem1gzO2EPJAeJCtV Won4HoyW8QUvugFDfQ2R9lkmRtTFe9c6gp04g3YLQxkbBiDX2hNfjgPVi2sfiIOfjKG1 eDfdydLPHNbZ54k7vL1vuWqNOGtPnYkW1/py6anWlpB6QnlorY4wwzcRda4e2Sv4jIRy XnEmvd21FJhougrJ88hJtX58uM566YVFm0UUInmwzLGu6b2XZVzWGQTxTTe/GqJyI6RA su4Q== X-Forwarded-Encrypted: i=1; AJvYcCWXQZe5QfDxHtzklbiwhxz4DAAz6eWTLxIA5HlVW8J5Zs77MWF54ADhIxgZ+u0d9twcuNp9ApdiUMnHj8lvEkJG0Pb5h1BVTGXSGOod X-Gm-Message-State: AOJu0YyEXOsm2DlN8h7oUBoMLw/d7ueLl6gI+xAgTpc8MSPyxLNtULdx E+dPMoiGlfBDjN8NL159dpcE2qZG824bbZxP577pWR6iRkyt1A7BhQ014ODJBe0HgpKzsZY7xdB hOnAWK3FFbbjPvDv62+wHgoP+Iio51W/Hoo/VVIXKJKmfG9mfo9+ZCyazh9rSVA== X-Received: by 2002:a2e:8194:0:b0:2de:6d53:fcd8 with SMTP id e20-20020a2e8194000000b002de6d53fcd8mr978654ljg.5.1714119249114; Fri, 26 Apr 2024 01:14:09 -0700 (PDT) X-Received: by 2002:a2e:8194:0:b0:2de:6d53:fcd8 with SMTP id e20-20020a2e8194000000b002de6d53fcd8mr978635ljg.5.1714119248626; Fri, 26 Apr 2024 01:14:08 -0700 (PDT) Received: from gerbillo.redhat.com ([2a0d:3344:171d:a510::f71]) by smtp.gmail.com with ESMTPSA id a12-20020a056000050c00b00349ac818326sm21795221wrf.43.2024.04.26.01.14.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 01:14:08 -0700 (PDT) Message-ID: Subject: Re: [PATCH net-next 3/4] net: add code for TCP fraglist GRO From: Paolo Abeni To: Felix Fietkau , netdev@vger.kernel.org, Eric Dumazet , "David S. Miller" , Jakub Kicinski , David Ahern Cc: willemdebruijn.kernel@gmail.com, linux-kernel@vger.kernel.org Date: Fri, 26 Apr 2024 10:14:06 +0200 In-Reply-To: <20240424180458.56211-4-nbd@nbd.name> References: <20240424180458.56211-1-nbd@nbd.name> <20240424180458.56211-4-nbd@nbd.name> Autocrypt: addr=pabeni@redhat.com; prefer-encrypt=mutual; keydata=mQINBGISiDUBEAC5uMdJicjm3ZlWQJG4u2EU1EhWUSx8IZLUTmEE8zmjPJFSYDcjtfGcbzLPb63BvX7FADmTOkO7gwtDgm501XnQaZgBUnCOUT8qv5MkKsFH20h1XJyqjPeGM55YFAXc+a4WD0YyO5M0+KhDeRLoildeRna1ey944VlZ6Inf67zMYw9vfE5XozBtytFIrRyGEWkQwkjaYhr1cGM8ia24QQVQid3P7SPkR78kJmrT32sGk+TdR4YnZzBvVaojX4AroZrrAQVdOLQWR+w4w1mONfJvahNdjq73tKv51nIpu4SAC1Zmnm3x4u9r22mbMDr0uWqDqwhsvkanYmn4umDKc1ZkBnDIbbumd40x9CKgG6ogVlLYeJa9WyfVMOHDF6f0wRjFjxVoPO6p/ZDkuEa67KCpJnXNYipLJ3MYhdKWBZw0xc3LKiKc+nMfQlo76T/qHMDfRMaMhk+L8gWc3ZlRQFG0/Pd1pdQEiRuvf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OcH9iVlUQhRgemQSkhfNaP9LqR1XKujlTuUTpoyT3xwAzkmSxN1nABoutHEO/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 Wed, 2024-04-24 at 20:04 +0200, Felix Fietkau wrote: > This implements fraglist GRO similar to how it's handled in UDP, however > no functional changes are added yet. The next change adds a heuristic for > using fraglist GRO instead of regular GRO. >=20 > Signed-off-by: Felix Fietkau > --- > include/net/tcp.h | 3 ++- > net/ipv4/tcp_offload.c | 29 +++++++++++++++++++++++++++-- > net/ipv6/tcpv6_offload.c | 11 ++++++++++- > 3 files changed, 39 insertions(+), 4 deletions(-) >=20 > diff --git a/include/net/tcp.h b/include/net/tcp.h > index b935e1ae4caf..875cda53a7c9 100644 > --- a/include/net/tcp.h > +++ b/include/net/tcp.h > @@ -2194,7 +2194,8 @@ void tcp_v4_destroy_sock(struct sock *sk); > =20 > struct sk_buff *tcp_gso_segment(struct sk_buff *skb, > netdev_features_t features); > -struct sk_buff *tcp_gro_receive(struct list_head *head, struct sk_buff *= skb); > +struct sk_buff *tcp_gro_receive(struct list_head *head, struct sk_buff *= skb, > + bool fraglist); > INDIRECT_CALLABLE_DECLARE(int tcp4_gro_complete(struct sk_buff *skb, int= thoff)); > INDIRECT_CALLABLE_DECLARE(struct sk_buff *tcp4_gro_receive(struct list_h= ead *head, struct sk_buff *skb)); > INDIRECT_CALLABLE_DECLARE(int tcp6_gro_complete(struct sk_buff *skb, int= thoff)); > diff --git a/net/ipv4/tcp_offload.c b/net/ipv4/tcp_offload.c > index 06dbb2e2b2f3..6294e7a5c099 100644 > --- a/net/ipv4/tcp_offload.c > +++ b/net/ipv4/tcp_offload.c > @@ -252,7 +252,8 @@ struct sk_buff *tcp_gso_segment(struct sk_buff *skb, > return segs; > } > =20 > -struct sk_buff *tcp_gro_receive(struct list_head *head, struct sk_buff *= skb) > +struct sk_buff *tcp_gro_receive(struct list_head *head, struct sk_buff *= skb, > + bool fraglist) > { > struct sk_buff *pp =3D NULL; > struct sk_buff *p; > @@ -289,6 +290,7 @@ struct sk_buff *tcp_gro_receive(struct list_head *hea= d, struct sk_buff *skb) > len =3D skb_gro_len(skb); > flags =3D tcp_flag_word(th); > =20 > + NAPI_GRO_CB(skb)->is_flist =3D fraglist; > list_for_each_entry(p, head, list) { > if (!NAPI_GRO_CB(p)->same_flow) > continue; > @@ -308,6 +310,7 @@ struct sk_buff *tcp_gro_receive(struct list_head *hea= d, struct sk_buff *skb) > found: > /* Include the IP ID check below from the inner most IP hdr */ > flush =3D NAPI_GRO_CB(p)->flush; > + flush |=3D fraglist !=3D NAPI_GRO_CB(p)->is_flist; > flush |=3D (__force int)(flags & TCP_FLAG_CWR); > flush |=3D (__force int)((flags ^ tcp_flag_word(th2)) & > ~(TCP_FLAG_CWR | TCP_FLAG_FIN | TCP_FLAG_PSH)); > @@ -341,6 +344,19 @@ struct sk_buff *tcp_gro_receive(struct list_head *he= ad, struct sk_buff *skb) > flush |=3D (ntohl(th2->seq) + skb_gro_len(p)) ^ ntohl(th->seq); > flush |=3D skb_cmp_decrypted(p, skb); > =20 > + if (fraglist) { > + flush |=3D (__force int)(flags ^ tcp_flag_word(th2)); Don't we have this check already a few lines above? > + flush |=3D skb->ip_summed !=3D p->ip_summed; > + flush |=3D skb->csum_level !=3D p->csum_level; > + flush |=3D !pskb_may_pull(skb, skb_gro_offset(skb)); Why we need this check? The earlier skb_gro_may_pull() should ensure that, right? > + flush |=3D NAPI_GRO_CB(p)->count >=3D 64; > + > + if (flush || skb_gro_receive_list(p, skb)) > + mss =3D 1; > + > + goto out_check_final; TCP flags processing needs some care. You need to propagate the current packets flag to the old one, and update the older packet csum accordingly. Cheers, Paolo