Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3656033ybv; Sun, 16 Feb 2020 02:34:22 -0800 (PST) X-Google-Smtp-Source: APXvYqw5vnTJmlDX58QLM+ugeNXf1PQsjpPH4pjbOleDs9pK5c1YqAC6cTFNDwm6HoZ5+6I/y5JR X-Received: by 2002:aca:4ad8:: with SMTP id x207mr6678772oia.55.1581849262568; Sun, 16 Feb 2020 02:34:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581849262; cv=none; d=google.com; s=arc-20160816; b=I1AIZJIYUbhy5QIT2WAYd47d1jhAeNg4fM/kaIbGThXdH5uEt7s3zmEuWGO5Xwa/J/ rwPRBipZMMzPqhpMsBtOBo/zGinz8kPXSwOdKdO/Ppz6lGWA5alZ8Dq5eeZ5sfsZKrvG Om+f8Pfo06918/ULEexKPfK6KX9SZpmPfmPcgAdE5iGwaTzW9DpDykF9oiFRGwt8A2yK aVsPLOoyMKmkchRZKIWQ58wkL2JwSAK5WXd0VxqK+6iNwkk9dRcgsAaajo+3bm2EbeNq Fwc/DN1iJkdAtcpdaTK0afdXXNfWW1v7fjtkKmhty992jAt/OyjqPFgchULM9O9+SiwR 6clg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=AyZPiWK74GL/snEzHEB39Hj1J71bF2CTXG08laECY4o=; b=VYJKRybrEDNwaGzgNy6Hh4S3epUEVjEp8KI4kJgesYTCYuUKruEiNWKd/pWKda20A3 bU+lWR2izghwprx3eojPrT5YMJtmxcP8cgoXSqH+RS02nP5WrvNhYhDCQLSKdB0I93mU ummuP0VKANGlOrmF87pPLSYbs8lo6NMLEdWHQ1+NM56nR2LrGgGGEvSsWyMzGS4cf87z dZ0BjGychV92/JY7vRBrHXtdG0X0ico9TdDlDFVGjkyTlFQbqziFMELBBcLnVZeBXVdo oLPwNmhs3h6Gvo3sFdRY3h3muxNNeNcAELCmCiv6ezLp9J607uEx54g4BcFGKS3yp0Tn idCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MzXIMCAn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l17si5550826otk.218.2020.02.16.02.34.11; Sun, 16 Feb 2020 02:34:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MzXIMCAn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727896AbgBPKeC (ORCPT + 99 others); Sun, 16 Feb 2020 05:34:02 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:24102 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726020AbgBPKeB (ORCPT ); Sun, 16 Feb 2020 05:34:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581849240; 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=AyZPiWK74GL/snEzHEB39Hj1J71bF2CTXG08laECY4o=; b=MzXIMCAnMzfnQxGkyJGISLw2w/BP/xcLR2PEybUSGP4f5fBrr8VhEMaIYKCY8NgvU3FPXd 0tQkpWYKuJrklRroByX5nqCkRGzXYonDrZthh528/v6FVvCk8mq2IVgAJcDww8xkld8b5o DH8/WbnFVqKfayRY1GCJWV5jLDARq7o= Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-97-fxZy2fR_NzOBxa1KYwWkgg-1; Sun, 16 Feb 2020 05:33:59 -0500 X-MC-Unique: fxZy2fR_NzOBxa1KYwWkgg-1 Received: by mail-lf1-f71.google.com with SMTP id a11so1425357lff.12 for ; Sun, 16 Feb 2020 02:33:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=AyZPiWK74GL/snEzHEB39Hj1J71bF2CTXG08laECY4o=; b=NKyEStUuSFYkDIM4kIu1XlU94VhhSbGh6aBRKtFLUnsF7VrKsWEgf3rYvOu11NW07B D8YBrCSiKzarbG+tIFgsTBMnswgRgOWKznmNIbVHWe4Q5YAhgw5YEujUYDozFFy5FU8+ JVnQIYe3HLmVwPDNbwj4y4t3xaDQ68zqsdP+HIPAcT0LA+zsUYF6curw08PbrMTg/3Qn vNoOfDSYTFZFDSqpoBaFrvcj7YouF1Pr4oZPI/ahnwn0+eSn9E7qLQohCBj6YAUODdkJ sCkFNKAwClPa7llGrix/Cuek5EXmliTc+R/VpxLj+mcCihGO6vUR0KHjwGW8MLIH0F3Z n5LQ== X-Gm-Message-State: APjAAAWe5WxMnwsVw3x67kN6cHU6QvbVyqMzjvMbFxEANQJOY0T2xEyA hVr4hajhXyyrRwdiNllsoV1R4b+VGUM43hlK/Ua03bVtnWZ16uM+niVcewTn8QsEUPYlrT0Yx/P 9KlSNv+BkjZgOsZYTZNszpUyR X-Received: by 2002:ac2:5979:: with SMTP id h25mr5823545lfp.203.1581849237863; Sun, 16 Feb 2020 02:33:57 -0800 (PST) X-Received: by 2002:ac2:5979:: with SMTP id h25mr5823536lfp.203.1581849237634; Sun, 16 Feb 2020 02:33:57 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id a12sm6454240ljk.48.2020.02.16.02.33.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Feb 2020 02:33:56 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id DED0E180371; Sun, 16 Feb 2020 11:33:55 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Ilias Apalodimas , netdev@vger.kernel.org Cc: jonathan.lemon@gmail.com, lorenzo@kernel.org, Ilias Apalodimas , Thomas Petazzoni , "David S. Miller" , Jassi Brar , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Jesper Dangaard Brouer , Jakub Kicinski , Alexei Starovoitov , Daniel Borkmann , John Fastabend , linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, bpf@vger.kernel.org Subject: Re: [PATCH net-next] net: page_pool: API cleanup and comments In-Reply-To: <20200216094056.8078-1-ilias.apalodimas@linaro.org> References: <20200216094056.8078-1-ilias.apalodimas@linaro.org> X-Clacks-Overhead: GNU Terry Pratchett Date: Sun, 16 Feb 2020 11:33:55 +0100 Message-ID: <87k14mbz3g.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ilias Apalodimas writes: > Functions starting with __ usually indicate those which are exported, > but should not be called directly. Update some of those declared in the > API and make it more readable. > > page_pool_unmap_page() and page_pool_release_page() were doing > exactly the same thing. Keep the page_pool_release_page() variant > and export it in order to show up on perf logs. > Finally rename __page_pool_put_page() to page_pool_put_page() since we > can now directly call it from drivers and rename the existing > page_pool_put_page() to page_pool_put_full_page() since they do the same > thing but the latter is trying to sync the full DMA area. > > Also update netsec, mvneta and stmmac drivers which use those functions. > > Suggested-by: Jonathan Lemon > Signed-off-by: Ilias Apalodimas Thanks for the house cleaning :) Acked-by: Toke H=C3=B8iland-J=C3=B8rgensen