Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp537971lqd; Wed, 24 Apr 2024 09:27:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWDuiHDD6U7R1I9CHpa2iHpAnLSWzZ0ludAPnm8U9FrgiKF4Xi41Dquznll55LrUCD8bHzJBX2muAUK7JGwdQMGZX4eEcjikcSmkR/U6Q== X-Google-Smtp-Source: AGHT+IFdcZpvf2WihqPf5q/GRFEant8p1xTuNlrZer1J3OBdMyEFBsUIACJK/IUc6FajUUUpebPc X-Received: by 2002:a05:6402:c0a:b0:56d:fca8:d204 with SMTP id co10-20020a0564020c0a00b0056dfca8d204mr278880edb.27.1713976032235; Wed, 24 Apr 2024 09:27:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713976032; cv=pass; d=google.com; s=arc-20160816; b=ux08SEYyl1uzMOyci/l1TWVhJixdxT5Fw+/xLsn3pbgyjaA89X4WpDO9lMEpaIC/ck 23PJ760B4Nis66j7eosp94idAYiO7yUU8EdUOvCbeHVx8Oge7V8iSR4jAgjY6EWzfOJo l5LQByRe8CFS8k/3/WLhpi8B4LyG8v+h8hyK3aHrDkj5r6b1kGpcoyYX+yc/Y6+SbZAT W40wpbB10B9RZtlTWndQ6bMAb6ThimxMOELJcsylkWWEFmkFJW2rRIJFlyQ2VWKoNxM0 eY5lcBnfGYo7FBJvlrI1S06XZXZ019GOrxHYC8+D64Ayi1ZcF8zCg8yWrF7rj/KEiBDH EmkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=OIW5pBwd/QABDGbQnMOj9PDND5rkPJ3dm3XY/rq8KQI=; fh=mL0m0ZhDMZ/2Da3hizj6BRr1EDFXABfoVlJt4WxoFFA=; b=ww9gxL4dbMRqYQAA5FVb9J+BDGmytn1dpE2NKAlNsPXGlG1eIS7gH0c97LLQRaHH+O mt48dP+jUDpXlZwDsYpGFvyYLlyihvZm1LUXPvfs0BcRjwpvtHlfjNoeRaJw2sXZVAZb qMAAIfwxc5gT7aFd+//X+O/Myw/cw7G7ThIjWdqQioAZGgUU+K8b3oNZwFTnGqpwlg3d asZKP0svYJ7bP9qNNU+pymqcAnsGSFoqh51jm3ID5RIVq36P+dqSdKgVxntVp5rmrfpP X6rDIDNG1GGJJJL0Qnztv1zUpXBcplodfa+mQFrIpW0fw9S5aeESWF6qNQXyxkcvdEq/ apEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=GkYXgMeI; arc=pass (i=1 dkim=pass dkdomain=nbd.name dmarc=pass fromdomain=nbd.name); spf=pass (google.com: domain of linux-kernel+bounces-157316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157316-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t18-20020a056402021200b0056c53edca63si8700264edv.281.2024.04.24.09.27.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 09:27:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157316-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=fail header.i=@nbd.name header.s=20160729 header.b=GkYXgMeI; arc=pass (i=1 dkim=pass dkdomain=nbd.name dmarc=pass fromdomain=nbd.name); spf=pass (google.com: domain of linux-kernel+bounces-157316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157316-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name 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 014E11F224F9 for ; Wed, 24 Apr 2024 16:27:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EEA916C45B; Wed, 24 Apr 2024 16:26:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nbd.name header.i=@nbd.name header.b="GkYXgMeI" Received: from nbd.name (nbd.name [46.4.11.11]) (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 DE6FA1635D5; Wed, 24 Apr 2024 16:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.4.11.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713976007; cv=none; b=qUlsh+noxDYGCinlXImK6/jDZnHiyBNVEY++9VHTwpVsRLtr/GXERCVFjZO5s6fGHx+ZiRoVxobdRH3vQT1F9cgPK7z2gGqWDU4601Z54Dy3ss5EXCPlAbujm97sFWh+l0kERfrzck8tOVzUCP615W82leNIh//MFnzCoqoP4FA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713976007; c=relaxed/simple; bh=qp+U2GSE5g9lmqy8CgBgaWgxLhHEXYdXsgvZZwZNbq4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=k+14Uc/7FJzDQeECYLuCpAgnQ5oAvAwxDAez+lmevoql4K8oXm+MwbQRskVd5Db2VJk7h39xu8MuRQ9iM8ixbxuSb0KYyIvKm0d+nvE9N1/KRNvX+4F98i4IG7RwHeG8NjBmKolOrwefVwI9reZ1+0UT+vrrZ/7Hm1HHiW4/TDA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nbd.name; spf=none smtp.mailfrom=nbd.name; dkim=pass (1024-bit key) header.d=nbd.name header.i=@nbd.name header.b=GkYXgMeI; arc=none smtp.client-ip=46.4.11.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nbd.name Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=nbd.name DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OIW5pBwd/QABDGbQnMOj9PDND5rkPJ3dm3XY/rq8KQI=; b=GkYXgMeIXn+STyyDJZP+qTQBdQ dj3O+4v3VP2EeaVz1AHXCHlONy4eLINJbMwqMRAWxijUd8yYv1Uxx+r+soCDx9rDgAsGTPbkWsldT ETemox4BwVpeIxHvkp1JSjms8WSGQpRU5xzz+1iam9u7TZ7XFVrTItVi8dkHDB/+YQsA=; Received: from p54ae9c93.dip0.t-ipconnect.de ([84.174.156.147] helo=nf.local) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1rzfS9-006pQZ-2D; Wed, 24 Apr 2024 18:26:37 +0200 Message-ID: <4e5704f4-f715-4e39-876b-ea5d8a83a0a3@nbd.name> Date: Wed, 24 Apr 2024 18:26:37 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC] net: add TCP fraglist GRO support To: Willem de Bruijn , Paolo Abeni , Eric Dumazet Cc: netdev@vger.kernel.org, "David S. Miller" , Jakub Kicinski , David Ahern , linux-kernel@vger.kernel.org References: <20240423094117.93206-1-nbd@nbd.name> <63abfa26-d990-46c3-8982-3eaf7b8f8ee5@nbd.name> <7476374f-cf0c-45d0-8100-1b2cd2f290d5@nbd.name> <97f10c8b5b615eac8f65d67ef10928d97b6b760d.camel@redhat.com> <328ab7b3-4890-4e0d-8b9a-fed7700f1a6a@nbd.name> <66285f637bdec_1924cc2941b@willemb.c.googlers.com.notmuch> <6629177f6b4c7_1a76072949b@willemb.c.googlers.com.notmuch> Content-Language: en-US From: Felix Fietkau Autocrypt: addr=nbd@nbd.name; keydata= xsDiBEah5CcRBADIY7pu4LIv3jBlyQ/2u87iIZGe6f0f8pyB4UjzfJNXhJb8JylYYRzIOSxh ExKsdLCnJqsG1PY1mqTtoG8sONpwsHr2oJ4itjcGHfn5NJSUGTbtbbxLro13tHkGFCoCr4Z5 Pv+XRgiANSpYlIigiMbOkide6wbggQK32tC20QxUIwCg4k6dtV/4kwEeiOUfErq00TVqIiEE AKcUi4taOuh/PQWx/Ujjl/P1LfJXqLKRPa8PwD4j2yjoc9l+7LptSxJThL9KSu6gtXQjcoR2 vCK0OeYJhgO4kYMI78h1TSaxmtImEAnjFPYJYVsxrhay92jisYc7z5R/76AaELfF6RCjjGeP wdalulG+erWju710Bif7E1yjYVWeA/9Wd1lsOmx6uwwYgNqoFtcAunDaMKi9xVQW18FsUusM TdRvTZLBpoUAy+MajAL+R73TwLq3LnKpIcCwftyQXK5pEDKq57OhxJVv1Q8XkA9Dn1SBOjNB l25vJDFAT9ntp9THeDD2fv15yk4EKpWhu4H00/YX8KkhFsrtUs69+vZQwc0cRmVsaXggRmll dGthdSA8bmJkQG5iZC5uYW1lPsJgBBMRAgAgBQJGoeQnAhsjBgsJCAcDAgQVAggDBBYCAwEC HgECF4AACgkQ130UHQKnbvXsvgCgjsAIIOsY7xZ8VcSm7NABpi91yTMAniMMmH7FRenEAYMa VrwYTIThkTlQzsFNBEah5FQQCACMIep/hTzgPZ9HbCTKm9xN4bZX0JjrqjFem1Nxf3MBM5vN CYGBn8F4sGIzPmLhl4xFeq3k5irVg/YvxSDbQN6NJv8o+tP6zsMeWX2JjtV0P4aDIN1pK2/w VxcicArw0VYdv2ZCarccFBgH2a6GjswqlCqVM3gNIMI8ikzenKcso8YErGGiKYeMEZLwHaxE Y7mTPuOTrWL8uWWRL5mVjhZEVvDez6em/OYvzBwbkhImrryF29e3Po2cfY2n7EKjjr3/141K DHBBdgXlPNfDwROnA5ugjjEBjwkwBQqPpDA7AYPvpHh5vLbZnVGu5CwG7NAsrb2isRmjYoqk wu++3117AAMFB/9S0Sj7qFFQcD4laADVsabTpNNpaV4wAgVTRHKV/kC9luItzwDnUcsZUPdQ f3MueRJ3jIHU0UmRBG3uQftqbZJj3ikhnfvyLmkCNe+/hXhPu9sGvXyi2D4vszICvc1KL4RD aLSrOsROx22eZ26KqcW4ny7+va2FnvjsZgI8h4sDmaLzKczVRIiLITiMpLFEU/VoSv0m1F4B FtRgoiyjFzigWG0MsTdAN6FJzGh4mWWGIlE7o5JraNhnTd+yTUIPtw3ym6l8P+gbvfoZida0 TspgwBWLnXQvP5EDvlZnNaKa/3oBes6z0QdaSOwZCRA3QSLHBwtgUsrT6RxRSweLrcabwkkE GBECAAkFAkah5FQCGwwACgkQ130UHQKnbvW2GgCeMncXpbbWNT2AtoAYICrKyX5R3iMAoMhw cL98efvrjdstUfTCP2pfetyN In-Reply-To: <6629177f6b4c7_1a76072949b@willemb.c.googlers.com.notmuch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 24.04.24 16:30, Willem de Bruijn wrote: >> > If keeping, this refinement can probably a separate follow-on patch in >> > the series too: >> > >> > - refactor existing udp code >> > - add segmentation support to handle such packets on tx >> > - add coalescing support that starts building such packets on rx >> > - refine coalescing choice >> I don't really understand what you're suggesting. With my patch, the GRO >> code handles coalescing of packets. Segmentation on output is also >> supported. The next version of my patch will fix the cases that were too >> similar to the UDP code, so I guess refactoring to share code doesn't >> really make sense there. >> Am I missing something? > > I mean if breaking up into a series. First have the refactoring patch > which should be easy to review to be a noop. Then add the segmentation > code, which needs to exist before packets may arrive that depend on > it. Then add the code that produces such packets. To break up into > manageable chunks. Right, that makes sense. Thanks, - Felix