From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=R6ng2Jlv; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id EB5085A0271 for ; Thu, 11 Sep 2025 17:45:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1757605518; 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; bh=DgfokLJpYTLsSk0ebDKeQrgg7cxrbOeM5yR5m0Jf4t8=; b=R6ng2JlvDHlq9MfpbbUehNjK6eoPRNtu8GoqD4VCPrjHNsFJQJLZrWkeK/kGcpU+y7YWnH /fxx5mDrRggETmZOPtbP6X7ugAmuStJHYBnPxjklerE916hhcr33WUrefwQUYXBB5GVNso upzAQjpRHyPh/70wMbN1bW70WgyWXes= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-599-FCSxYFlGOueL_sjn1qnVTQ-1; Thu, 11 Sep 2025 11:45:17 -0400 X-MC-Unique: FCSxYFlGOueL_sjn1qnVTQ-1 X-Mimecast-MFC-AGG-ID: FCSxYFlGOueL_sjn1qnVTQ_1757605516 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-45de5fdda1aso5147425e9.1 for ; Thu, 11 Sep 2025 08:45:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757605515; x=1758210315; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=DgfokLJpYTLsSk0ebDKeQrgg7cxrbOeM5yR5m0Jf4t8=; b=ecl6z0gOzZDvCmY9EBSf4/CrjOEgeDTnM7PDi5hmm8wAYfCLSnZqZZn35mS0j0CrNY ZHaicUR+vFcufw6kaXOs+hPn2A6LJluhJZyhms5WZqupWXHmpYfA2pz4er96VQBxY930 ynBPikievpuxhntZa55v1qv4CPwvav5yqiTor82ngsganTL9QhTCreDHupjgV05RzXyh HFE+BIBVLIfVfh085TsnbqvRYfXoUDNWb6+irzuIajTb/t96QTTAmjGGdpdm+3W7Xya+ H7LP41N2ht2+CsMLyjxhtJzPZSM33CNNkHoppLY7ujQxYExGsuLnM76pJGpcvPoIUwVk p3eg== X-Gm-Message-State: AOJu0Yzz5nIEsq3F2jDllagn1dL9AyCPiooRQKXjV+IXqfvl8Raa+2JY B6KYK2zwc9Ge3cT9ghl8PSQnfZY/KnA7+WRw3DwYg9P1DRewFvt/FspuZkkAb2Ut2lFW+7RA4PT fsm8FcCv8ARspAwJXh+fUkQPOR0dmz9O57G4/U0ySaJ5WPW3bvTyyLNNPmt1hjbQ6rDk0koruqG eFzEOJ3DljRAeaKBxsYA8PwFtGcz4N9zNlvELT X-Gm-Gg: ASbGncsIhgHR69PxRLmkf+ILPll5oO4uI9ViKx+Ew/5u7GwOp9DGEgjiUK6pyBx5ziu aHNm8pExPXK8z9W20Gz5lqsRqxJwdwgdwVHD2QYpEzB4M6OTZ3+o11Oz9fLLN0cq2jPRD14CgIN teCD2TUAvh7dKgxwPZL1MQRFRFWdMALgZBZyICqYGHFCm52uAqCO7k1sRVCwd3UL5ErEAB0rGhj ectZKmyg4UR+SP2JxEfE+l7ND/nEIH7CCSp3PqDSXW8818QzAIOOntyQz/K0Isay3TiGbcqTeGq vJRvXcF7vsO6XKz/f933ieCyJI66Ae7IgOfVShKMGMuE1T0ZpN1wcyucwmxWGotvrXvV X-Received: by 2002:a05:600c:1d16:b0:45c:b56c:4194 with SMTP id 5b1f17b1804b1-45ddde8984amr174282615e9.2.1757605515109; Thu, 11 Sep 2025 08:45:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEsyZmI8sYSK4KmqJUKSFqHUK8lqR3eAMKz6QI3hGl+a06Eg2w7b5hDBBtKhSFsa5ZBapwkMg== X-Received: by 2002:a05:600c:1d16:b0:45c:b56c:4194 with SMTP id 5b1f17b1804b1-45ddde8984amr174282235e9.2.1757605514674; Thu, 11 Sep 2025 08:45:14 -0700 (PDT) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [176.103.220.4]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3e760786cddsm3023881f8f.14.2025.09.11.08.45.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Sep 2025 08:45:14 -0700 (PDT) Date: Thu, 11 Sep 2025 17:45:12 +0200 From: Stefano Brivio To: Xun Gu Subject: Re: [PATCH] Reduce tcp_buf_discard size Message-ID: <20250911174512.6345e635@elisabeth> In-Reply-To: <20250908110439.22327-1-xugu@redhat.com> References: <20250908110439.22327-1-xugu@redhat.com> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.49; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: i5WhoZyDsJ-fwdv7-64jRB-Vp6V4BIltnhbC8p4lCEM_1757605516 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: DCCMTAQI5CZNUGUJ2Y67IO2ZUYXO4YV5 X-Message-ID-Hash: DCCMTAQI5CZNUGUJ2Y67IO2ZUYXO4YV5 X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Mon, 8 Sep 2025 20:04:39 +0900 "xugu@redhat.com" wrote: > From: Xun Gu > > On kernels without SO_PEEK_OFF, a 16MB static buffer is used to > discard sent data. This patch reduces the buffer to 1MB. > > Larger discards are now handled by using multiple iovec entries > pointing to the same 1MB buffer. > > Signed-off-by: Xun Gu Applied, thanks, and welcome to the git log! -- Stefano