Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2403073rdb; Wed, 21 Feb 2024 06:45:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU4a1JlYAXmbqTvDBzodirjK11ta+MYmZnWCRvva7kxsApAj6Gt56JAzqu5T8T/PrmHZUNA6lUyLLpYFbdsiOW/5bPwFIjX93PXV6NJcA== X-Google-Smtp-Source: AGHT+IG+q+ERlvbdWqjSYoLV0z8ESTWGSdxQm7v0FBxlGvh4pyWD9nU7tSXySuYsP28tB3AATHjr X-Received: by 2002:a25:b9cf:0:b0:dc6:c2b2:c039 with SMTP id y15-20020a25b9cf000000b00dc6c2b2c039mr15815764ybj.41.1708526736370; Wed, 21 Feb 2024 06:45:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708526736; cv=pass; d=google.com; s=arc-20160816; b=gxPINshJh8oMWFhaOAmwY7rbm+aT/F3sRg96WQaV3mITg93/Jh6rGe0az8JKLp3UWP gzmtJt0LGYRen+qjuMTThRMyPpunFO1aVDUx8r/nf20cSnd4QJHZzjrDugp48JMVsT7w nnDsnrXREf2qSjambChNJ8fRSYgMKdgZHx8nLZ+T3tiAutFmZ9xZcuRDcyybPzfU64Fb tumw8Z2WE13oDUxGNIlCBM8twucJjcoqJyM5rOnNgupZkVQIOKS7gLMmZa4kYgf6SGLI Z2ZyA2PFYTYpVt2EM7Ma6a0fM/ra/uCNJUWg/uhU+BIfHS7FcjqHpEAVaDGnRk1/63S1 s86g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=WryMDEtQzvcbTVLA7pUg1xW62/aEPP+0OIGRV4dqoyk=; fh=ThW3eKhuBXFr2nvxZGlcPt1D6Aw0BhrQsmH8rI2CwpY=; b=mlvz5GLQfJOTG7pPa/iNBurHt0gYw3X2xSwypLa1Bnn9RuAd35Zfo1gXi5GdKirrRX EfLCpGDjhjGGMS7Jp+v7OfRgi2oAIjXFaLsehYKjf+YtgfO9kSqjpTXkMDR0obTmEtEW Ra3EQlj/1/DS9XMdccfUMIeJHG+W18HH/oEX+D5sblQq65IUYnUBhFKRSd1+iPSqiws2 kSqwE7NxJb1+C7ql8sy6+OZAqTLf93Mw2aXPWQhAyrXeLC28sXHT4lSKQ5JygcSUFHuJ /+qKw1NhYXr9sr+vH8c1ta71ACX6yDqiUhJOeMjxd/lRNoC1ybsix1HxPNr6p/VQwRhi Mp9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=goBDxIuD; 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-74928-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74928-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. [147.75.199.223]) by mx.google.com with ESMTPS id f3-20020a05620a408300b007872a3c1871si12162425qko.437.2024.02.21.06.45.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:45:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74928-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=goBDxIuD; 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-74928-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74928-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 22FEB1C21F51 for ; Wed, 21 Feb 2024 14:45:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24D807FBAC; Wed, 21 Feb 2024 14:45:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="goBDxIuD" 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 C6B4679DD6 for ; Wed, 21 Feb 2024 14:45:25 +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=1708526727; cv=none; b=mdyhD/w5xfJPm7kOc/CVAVqZDIENOXpGo76Y8vJp8/V9L+CbxMwtiVMPyDJZGKORH/KG8aKritkuvjZ65pwr7Rj1Mtkm66Xo9JhgSQvuJF1w7cKgIO4P95KhvdZlyFHeHS+YZG6VVSKkHt77VfC4+L+OFzaoq0Rk5DXKgE60bVw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708526727; c=relaxed/simple; bh=TF6Jk4G9pKDpFKD38K4laHdELjPZgfrs/lrgj4o7a/o=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Ad1ZHsNAghQzPvwacmqQZnVFM0/QdKedhwi7I9AD9QOim2vfxuVvhTTVup0OE3e6BlUp3HE3SRRnbH5/Btns8rxNMtW+Uql0+kwIemXOVNtkhWQGzWPCcNUBFxPu5LDOYRToc5IE98Hi6BiQOr/K+dYxVAblHK/uRjLEKX9FOno= 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=goBDxIuD; 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=1708526724; 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=WryMDEtQzvcbTVLA7pUg1xW62/aEPP+0OIGRV4dqoyk=; b=goBDxIuDfA+hfGwg1jYEE6bWhihduyqEI4uZp9n6Dyjx1A4JOTw4KYUR+e+mfuIHtbrY7h SnjdI3oSVv0qtw475Y5w1DY2JUkqEyQZv2pwLff8LSe14jnVZtD7NmEXlvd1DydRl/E4vW PabQzFz+D0nNfu5U14ssptSu6ZRS8C4= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-283-9Bq96p_WOV64t75A8UhSpA-1; Wed, 21 Feb 2024 09:45:22 -0500 X-MC-Unique: 9Bq96p_WOV64t75A8UhSpA-1 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-a30f9374db7so787143366b.0 for ; Wed, 21 Feb 2024 06:45:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708526720; x=1709131520; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WryMDEtQzvcbTVLA7pUg1xW62/aEPP+0OIGRV4dqoyk=; b=He97OGXgnVW9aogCun/ghwIn42pqI7/QdU9ZkMhq/xa/FNNr8pTKTFVaKyVGonqUQS 5RIvPSlXJjzdk0r/ta2J0KOL6ngAqPywS7ybgwsP5622KusYDn6vaoCc3lplyU6GGcqJ 2O+PtFHw7zrWVjZVQ+ZMMNeEjqWIeqbtL1mk/+qYRmz5qCOqHDA8O1yAs+vQ6EbunG4t sv7MJC69Fndf8ffprdXk+2DNKlJUPorNJX6cC9Ehu4YKXsW52VXdna2ZC4y9F2wlgKXF FBVlHVYoqNNl40fonSYRaiCKpRNyyk0sUZWYWu/P/NYl1rj1FKe1E9Pu7PF++ETJEdJf VTUw== X-Gm-Message-State: AOJu0Ywk1x9iEllcNZwaiP3+cmlVsdjGH7QFdS4zp6m9Jfl93vKY/Lxo qhRh3S7INpeu5EXpJe5dmfxDtd40JcKHq94FuRIDHie9w6L52h3Va0D0M26uaLEyWxP6hmdH7c7 P9UNaaW1LMhoR2ajpOPRJr9YbQeh9i6hwnXLSh+FCmJfy+CfNyH4cccZbSe/2PIfXyOFaSw== X-Received: by 2002:a17:906:280c:b0:a3c:2f68:54a9 with SMTP id r12-20020a170906280c00b00a3c2f6854a9mr18329479ejc.3.1708526720785; Wed, 21 Feb 2024 06:45:20 -0800 (PST) X-Received: by 2002:a17:906:280c:b0:a3c:2f68:54a9 with SMTP id r12-20020a170906280c00b00a3c2f6854a9mr18329465ejc.3.1708526720445; Wed, 21 Feb 2024 06:45:20 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id s6-20020a17090699c600b00a3efe1a2878sm1612270ejn.137.2024.02.21.06.45.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:45:19 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 59D9210F6580; Wed, 21 Feb 2024 15:45:19 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: linux-kernel@vger.kernel.org Cc: bpf@vger.kernel.org Subject: Re: [PATCH net-next v2 0/4] Change BPF_TEST_RUN use the system page pool for live XDP frames In-Reply-To: <20240220210342.40267-1-toke@redhat.com> References: <20240220210342.40267-1-toke@redhat.com> X-Clacks-Overhead: GNU Terry Pratchett Date: Wed, 21 Feb 2024 15:45:19 +0100 Message-ID: <87v86hzxj4.fsf@toke.dk> 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=utf-8 Content-Transfer-Encoding: quoted-printable Toke H=C3=B8iland-J=C3=B8rgensen writes: > Now that we have a system-wide page pool, we can use that for the live > frame mode of BPF_TEST_RUN (used by the XDP traffic generator), and > avoid the cost of creating a separate page pool instance for each > syscall invocation. See the individual patches for more details. > > This series targets net-next because it depends on this series of > Lorenzo's, that adds a global system page pool: > > https://lore.kernel.org/r/cover.1707729884.git.lorenzo@kernel.org > > Changelog: > v2: > - Change the cookie that marks the page for recycling to be a 128-bit > value (Paolo) Alright> - Add a patch that removes the init_callback parameter from page > pool (Olek) > - Carry forward review tags from v1 > > Toke H=C3=B8iland-J=C3=B8rgensen (4): > net: Register system page pool as an XDP memory model > bpf: test_run: Use system page pool for XDP live frame mode > bpf: test_run: Fix cacheline alignment of live XDP frame data > structures > page pool: Remove init_callback parameter > > include/linux/netdevice.h | 1 + > include/net/page_pool/types.h | 4 - > net/bpf/test_run.c | 143 +++++++++++++++++----------------- > net/core/dev.c | 13 +++- > net/core/page_pool.c | 4 - > 5 files changed, 86 insertions(+), 79 deletions(-) > > --=20 > 2.43.0