From mboxrd@z Thu Jan 1 00:00:00 1970 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 354E52EAB71 for ; Wed, 28 Jan 2026 20:20:02 +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=1769631603; cv=none; b=MYzj7ZmjC0N4PSxspJVa87gIiX1Ku4x52Lq0RY7I9O5KmAfIILoiIyqOKnDfAgU5ahnuJirN1KAErEwm2B0VXoSdGEejnhCwh59+H+gwLAELsqQwxUY2IMoqm4+dCZf3fAjgeuG0jxP6gVJqN2hcZEQDTZhW8PfsK/wIX9cc30k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769631603; c=relaxed/simple; bh=H8MOGYyVpy4spKBgCPB86YiyYdvqAE0R02Wh7I5HQXk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SPStRcIvYX2zlhnWMXxuWQD1xUeAkEWdx1C4nJscvvWdnQX4dOIifRamwsaTQ+WWX0Zu77aQPmHSwpGN3XYNGdP94bNk/Ocr1TO9TbYQr2h+ISlMUuX542o4VLcFinjw4tOrDsl24UhhttR0nNLyTUgt3gZC59zWJI3+NGakMZQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=O8j92tum; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=lgTPi3Wh; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="O8j92tum"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="lgTPi3Wh" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1769631601; 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: in-reply-to:in-reply-to:references:references; bh=Du6Lg6EMjGRVf9Alie1QVsUprTCTw9C8a2HYgbNcUXs=; b=O8j92tumgKbt7pz8TuAePVQkYIxnW91vFvnLYoQvAwEhCu66jXMAGwNQeWkHHrqymWtrCe xhXtWVtLgvSNqIwUc1BcV39UwnnXFw3hyfazcwhD+kocW1EAcBGBUGcUhzAC5Ibmdb0xt2 oWQtjd9YCVrhfO6o44bwQGsyAqrwmA4= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-486-hkV_yzoVObmeAEeN6vxOzg-1; Wed, 28 Jan 2026 15:19:59 -0500 X-MC-Unique: hkV_yzoVObmeAEeN6vxOzg-1 X-Mimecast-MFC-AGG-ID: hkV_yzoVObmeAEeN6vxOzg_1769631599 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-4359d70faa2so122667f8f.1 for ; Wed, 28 Jan 2026 12:19:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1769631598; x=1770236398; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Du6Lg6EMjGRVf9Alie1QVsUprTCTw9C8a2HYgbNcUXs=; b=lgTPi3WhvEed4SsE7z9Ldb6nVmenZ2Gv0s7t8pZfAYRbSM3Tccf3ei0Cv+ezIYvBc2 oXpPLy/F3qOb/fLuIy8CCZk12PmuUS63crbWIAl/6OeJ0ATLnE6HGWO0P3G58OLeAfna zzqpLJxDIaTqgcGFzVS/YPWExE4/zGG5ju15Iy181pkjtAH9hijgdtdtamd+GbbJ/JmP dGUHDM2Aq+RWim8BauwovswWC17X4mh4RwX7WswXp7BhEi+OaviJyy8hBNtigYdAS7DJ Y7gNcn3CGo+F+ZU4fu/c+wQPh8315t9ZF5BiQu2INUGBwom1ALXxX9Qx8CDrgAV6QHtE Flug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769631598; x=1770236398; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Du6Lg6EMjGRVf9Alie1QVsUprTCTw9C8a2HYgbNcUXs=; b=OWaRxmm+5NlKaz4ZhGTTinGuwRyJpNjuBtkESAFPrGqldbWxci/p71+d1/jWfLy/Ya lbq2W5Giez/J9L/woekyYpG5hBSBKypQH4oPMCvkxB/TVERtHe9TkJOc2/FXfAGGVN6f g+x0ek8gt4p57LclWfdugHQfPeCbyGvj5xIzQmEigTRq3+XwgArTfTst7bDIt79kUd+O 4zTmejKSy1KeGWqLv5tZ59Km0Nik6QkkcIonFCgIein8taepZOoDC2rCji8QLL3PEMAH h/9VAbwSPLjWgOvixJOB8VeZNCY177BytPtlyHGaJ/3GSZ56KV2VMqU9JLuN+sRhYykb fbpw== X-Forwarded-Encrypted: i=1; AJvYcCX+k+dOzMT0jnHpA9xJVe2/WOWqeE+WEigJ+BzQhRcspNdKzv0tQEbeP3V18XrXa1iJTfIrWIeXGd3hxLc=@vger.kernel.org X-Gm-Message-State: AOJu0YxhodwwM3Bwwwb4KOIke317wzqBvpp0DjyJngw+wWlqufVsPRgN bN8FVuK5deQEXwfB4lDd5ca/2tCKWHK0Q9t48eyktrBBkCz7EzrCC2bJ83ERZVrIrm1a4fAgYgx tJX2z4Fs0OaeTlZmGyKPmKosW8QnqF+Zxv3NGjFatWRjcv1izhTPV+JqhVF/YPmliZQ== X-Gm-Gg: AZuq6aI4eeewTERgtwGb4e3TrHva0fJgTCQOY90x+Oc+MYvx3pTzcxJs2iqAwx9Vv67 8VbPtSSbVpIb9lUYwzwG3/Jh+5PxJ/xCDsqWhCp1mBtTqN0DE9M/qY89ALdBeJ+sOxQ2qggebIS yVKf+1gCKQugfy1gY/m0/hsISRJ2VWCA/wDI9q8gf8DEFjftq6nr7ZCvALwEMtCC6qaMAmr5Isj ckdSWt3+kuZx0dL3n5sS65F/w1sbMLThwtIYkY6SdixM8GaCSrcJOUEelFY+/rUMa5Gi4l2Fs9k vWT5QCbDL4UGpeyOtR0KvqRmOO2t9OuEqNx5Sgj7ymB2bXv9Bcf+FLJNHT970U1gVk/TFmUbL9y uPfH++t7DAU6/3NBkSsy/SSI6bjmKoOGRUQ== X-Received: by 2002:a05:6000:2481:b0:431:a50:6e97 with SMTP id ffacd0b85a97d-435dd1bd8bbmr8045519f8f.34.1769631598597; Wed, 28 Jan 2026 12:19:58 -0800 (PST) X-Received: by 2002:a05:6000:2481:b0:431:a50:6e97 with SMTP id ffacd0b85a97d-435dd1bd8bbmr8045486f8f.34.1769631598089; Wed, 28 Jan 2026 12:19:58 -0800 (PST) Received: from redhat.com (IGLD-80-230-34-155.inter.net.il. [80.230.34.155]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435e1353ac2sm9728183f8f.38.2026.01.28.12.19.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jan 2026 12:19:57 -0800 (PST) Date: Wed, 28 Jan 2026 15:19:54 -0500 From: "Michael S. Tsirkin" To: Vishwanath Seshagiri Cc: Jason Wang , Xuan Zhuo , Eugenio =?iso-8859-1?Q?P=E9rez?= , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , David Wei , netdev@vger.kernel.org, virtualization@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] virtio_net: add page_pool support Message-ID: <20260128151944-mutt-send-email-mst@kernel.org> References: <20260106221924.123856-1-vishs@meta.com> <20260107032738-mutt-send-email-mst@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Jan 07, 2026 at 09:23:46PM -0800, Vishwanath Seshagiri wrote: > On 1/7/26 12:28 AM, Michael S. Tsirkin wrote: > > On Tue, Jan 06, 2026 at 02:19:22PM -0800, Vishwanath Seshagiri wrote: > > > Introduce page_pool support in virtio_net driver in order to recycle > > > pages in RX buffer allocation and avoid reallocating through the page > > > allocator. This applies to mergeable and small buffer modes. > > > > > > The patch has been tested using the included selftests and additional > > > edge case scripts covering device unbind/bind cycles, rapid interface > > > open/close, traffic during close, ethtool stress with feature toggling, > > > close with pending refill work, and data integrity verification. > > > > > > Yay! thanks for working on this! > > Could you share perf data please? > > After all, page pool is an optimization. > > Thanks! I'll add benchmark numbers in v2 of the patch. This never came, or did I miss it? > Beyond performance, page pool support is pre requisite for enabling > memory provider based zero copy implementations in virtio_net such as > devmem TCP and io-uring ZCRX. These features require the driver to use > page pools for buffer management. I'll update the cover letter to make > this motivation clearer. > > > > > > > > Vishwanath Seshagiri (2): > > > virtio_net: add page pool support for buffer allocation > > > selftests: virtio_net: add buffer circulation test > > > > > > drivers/net/virtio_net.c | 246 +++++++++++++++--- > > > .../drivers/net/virtio_net/basic_features.sh | 70 +++++ > > > 2 files changed, 275 insertions(+), 41 deletions(-) > > > > > > -- > > > 2.47.3 > >