Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4336787ybv; Sun, 16 Feb 2020 19:53:23 -0800 (PST) X-Google-Smtp-Source: APXvYqxTqXF9i5DpuVU+KsOyBg8zISs/HNgL1ElaqaYBbhof1lTxy4FS7/XIosHv8PMAPz+XckBz X-Received: by 2002:a9d:470a:: with SMTP id a10mr11075702otf.370.1581911603839; Sun, 16 Feb 2020 19:53:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581911603; cv=none; d=google.com; s=arc-20160816; b=z0DIFNHENZSHZKK3vBxecNgMqUsE4Wz+AabJaki2wroB7NNNWSCz/UtiUi/S5g4k2H +bpXLeM2+94jac+6woqBt3Vy5EcA7VJDUafbS5Sfk9HWXnsk1ZnSJK7s3EaySrfJxMAT sctBPEU3QVWF2ZNRfGa1M5uyWnBVsrhFEodaI1HEmgCFMIrCKV7P55VKYXNYFF3QJjoe j1GQ6XWu4wwt88ci+Qpcgny5Qru7w+tLNgQSPQGl3uO4YibvGo8AMnzzXTaJUEefZ/DW rfdNL3XmG9hzzgB2e9mmCBGj9Brsly28aE84+GFLTO41eiax0aAiDQDRt4PEv0eo119u etRA== 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 :references:in-reply-to:from:subject:cc:to:message-id:date; bh=zch6pGlYM1oMAwvc7U3qqrHUh1iEi9OWtaZL0ah0qi8=; b=fJvye6EeU5fAMPJOWK5DC6kjMeWkumkh54X2zhjQao3hjHQc45ztA1NG0kK2+EqZUA y632sj6WNP7tE82doXqIF21Lqc9qjQcnbbdF/jabojSYbAUCAXbo/7zasBo1CDLkoX9f Co8LZpj8O+sNb/FQah/nnAIsNmlpmqI0/5DLbOkBkW6aTfj7dcQtB20t4Q/ukcd/ZBMy 8U2sRAkKJmNHL3w/DSU/+Qh/rCV0HyxMJ1mpeK764s0UD/87Tk6eLlE/B1q478O+wkSf jcpmY2qLCkXM1yt5aFDeEJ3EQzQpU9RbXOT1C7YSK5t2KoWlq7/g6uKIz1fCIkheBC2p T3zg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o6si5419736oie.193.2020.02.16.19.53.11; Sun, 16 Feb 2020 19:53:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727889AbgBQDxC (ORCPT + 99 others); Sun, 16 Feb 2020 22:53:02 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:48516 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726498AbgBQDxC (ORCPT ); Sun, 16 Feb 2020 22:53:02 -0500 Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 4EC611582D81F; Sun, 16 Feb 2020 19:53:01 -0800 (PST) Date: Sun, 16 Feb 2020 19:53:00 -0800 (PST) Message-Id: <20200216.195300.260413184133485319.davem@davemloft.net> To: ilias.apalodimas@linaro.org Cc: netdev@vger.kernel.org, jonathan.lemon@gmail.com, lorenzo@kernel.org, thomas.petazzoni@bootlin.com, jaswinder.singh@linaro.org, peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, hawk@kernel.org, kuba@kernel.org, ast@kernel.org, daniel@iogearbox.net, john.fastabend@gmail.com, 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 From: David Miller In-Reply-To: <20200216094056.8078-1-ilias.apalodimas@linaro.org> References: <20200216094056.8078-1-ilias.apalodimas@linaro.org> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 16 Feb 2020 19:53:02 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ilias Apalodimas Date: Sun, 16 Feb 2020 11:40:55 +0200 > 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 Applied to net-next, thanks.