Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1449978rdb; Wed, 6 Dec 2023 21:52:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IGgrR9gJI3DFyX0J753rbUmal6FecP4m9pTUDm0NjgFVmbucHE3KKJWbnj0GVI6qmjEUcSd X-Received: by 2002:a05:6a20:daa9:b0:18b:5b7e:6b9 with SMTP id iy41-20020a056a20daa900b0018b5b7e06b9mr2440563pzb.2.1701928352278; Wed, 06 Dec 2023 21:52:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701928352; cv=none; d=google.com; s=arc-20160816; b=G6BhGnyj8tIwdro+0yakq8zNYTRU7EfX7OxcKT2vuJcQcPudfls1r2tda80/Om30xU 5T4kpq2ZJsr/4kn9Mp1qYkabeqFHl3EJqUuigQOMj6aESxvIMynnLjOiuTWiOincqSeL 83LwmQRqUm7upevdyW/7YvrEl0qmPA1q+eg3VzGOJb73otCifwnl8ErvlY6spHERJ1pT xTXgLfdF6QL7EZ1SJs3HBwRXSa7a6PFKt96m5Bod98B4rKUFTc+MCV1vIAA+12koU6vh 3fhW9XOSlHsIXrIqvgiyMrxfTsg2/2i2Ecu4FMmn0Q/iwgNzIQxXGRV8cjgkqEPwayb0 fG1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HSUZB2MS9IXq3JbO5o9diZppcpNs8joa8PI6k/pJS1g=; fh=5NACclMiE61U/W+sucaK9AuY4L5YS/1uipThKZ1Fgqs=; b=kN/n0i9Uy/lHC8IEa9gSaLmCfFwUSjN2WVIM0AVPkjD8O2VNEWle+IEeXXTSc8lRd/ pqgiBLbQYZiksU1ekV/zQ8Tljpk5gcKp92Iad1ZaIC9jN6/uGPHFQRoprGWAm1DpWQul 6AgyTaxkxY+rcFJmNvlgzYblPdWMuJXOT2FhetB/KHIpTdtzetDY2rWEFkmKCZKGnsrm Rxjfmbmx+vTdcPuX0Nu1chGbrT2/S7VguSEx9+3Fku7SO31lNHzIkkKeEoXhi3CrXaXH D8e1CSYpayyDF6iOmRUUVsQjRCCbvw4fFe2x2MZ47fjmXxwCxAiMTcYSTE1oRY3TWM4L GqZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bUuLd1zA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id x6-20020a654546000000b005c6b5466d48si564246pgr.442.2023.12.06.21.52.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 21:52:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bUuLd1zA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8DAEB80DF25F; Wed, 6 Dec 2023 21:52:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229558AbjLGFwT (ORCPT + 99 others); Thu, 7 Dec 2023 00:52:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjLGFwS (ORCPT ); Thu, 7 Dec 2023 00:52:18 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 514B21AD for ; Wed, 6 Dec 2023 21:52:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701928342; 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=HSUZB2MS9IXq3JbO5o9diZppcpNs8joa8PI6k/pJS1g=; b=bUuLd1zAB94Wp3czypK6KO1DTShTcZhE4ZWPboHv4K20/bMl0XIBjYI+hWHcFzkvSElpQb 6DP4jwMyk0p1Fb/q/KsrEFg+l6STM9SOFKdGP4dHV9ymL40pjvFs0OJ7+pwa5ehWhHa4ZC TBwUVQV1rx3f9F8IdI/zNExebeKBo8Q= Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-348-WBYIC2X5PninDoBu-ZlXDg-1; Thu, 07 Dec 2023 00:52:20 -0500 X-MC-Unique: WBYIC2X5PninDoBu-ZlXDg-1 Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-2866c800dd5so737126a91.0 for ; Wed, 06 Dec 2023 21:52:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701928339; x=1702533139; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HSUZB2MS9IXq3JbO5o9diZppcpNs8joa8PI6k/pJS1g=; b=oo3i4pOAaCuaOmpbehuIDBP7YML2IM7z0FGuMKhz3lvmG2RRNGVb/rtM8g87Ng0/SW AcY5q8M9TNObcocVrMn9hbbKHQPF6+snvImoTVSBLDzEtxen5zKkcJKK2oiRC9STs7kZ pnSAMdm+ZHTcsOMvKlPxELMNWNy6nMpq35PyiO1lNd5LWUDfYkSwR9daIytJfAM6VQRp my7OUOmF4Gvpszft1vPD+GZczeN8deRR31WC2mWKlk8dqilDvw9nAJCBG4JA/NcRcJa0 jbvK8PVl9zrvakpVBB5EvsSMKusgRFDQXXyIxqNPwUArAChvNeV1d/N8JTtGU1RdwcGT qBGA== X-Gm-Message-State: AOJu0Ywt2mnQewAXSqGyMCGHj56C6xoylp4KEqFlKGfGBuxj8Ye5Zeq9 5+t8zWuzsXiNYSi/KCGsAx4DByjm1wHAXu+JbZGAWslMXau+TOc4H1PaXPfnAluFToQfs39GGyj iKbu4cOgLMOdCg+C1M3LxOTuW+IZ6fXruyk0IGqdB X-Received: by 2002:a17:90a:fd09:b0:286:6cc0:cad3 with SMTP id cv9-20020a17090afd0900b002866cc0cad3mr1949087pjb.74.1701928339212; Wed, 06 Dec 2023 21:52:19 -0800 (PST) X-Received: by 2002:a17:90a:fd09:b0:286:6cc0:cad3 with SMTP id cv9-20020a17090afd0900b002866cc0cad3mr1949085pjb.74.1701928338997; Wed, 06 Dec 2023 21:52:18 -0800 (PST) MIME-Version: 1.0 References: <20231205113444.63015-1-linyunsheng@huawei.com> <20231205113444.63015-5-linyunsheng@huawei.com> In-Reply-To: <20231205113444.63015-5-linyunsheng@huawei.com> From: Jason Wang Date: Thu, 7 Dec 2023 13:52:08 +0800 Message-ID: Subject: Re: [PATCH net-next 4/6] vhost/net: remove vhost_net_page_frag_refill() To: Yunsheng Lin Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Michael S. Tsirkin" , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , kvm@vger.kernel.org, virtualization@lists.linux.dev, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 06 Dec 2023 21:52:30 -0800 (PST) On Tue, Dec 5, 2023 at 7:35=E2=80=AFPM Yunsheng Lin wrote: > > The page frag in vhost_net_page_frag_refill() uses the > 'struct page_frag' from skb_page_frag_refill(), but it's > implementation is similar to page_frag_alloc_align() now. > > This patch removes vhost_net_page_frag_refill() by using > 'struct page_frag_cache' instead of 'struct page_frag', > and allocating frag using page_frag_alloc_align(). > > The added benefit is that not only unifying the page frag > implementation a little, but also having about 0.5% performance > boost testing by using the vhost_net_test introduced in the > last patch. > > Signed-off-by: Yunsheng Lin > --- Acked-by: Jason Wang Thanks