Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4418357ybv; Sun, 16 Feb 2020 22:01:24 -0800 (PST) X-Google-Smtp-Source: APXvYqxmcvxiH+uqh02kbTpfF1V/tD1r3zBJJU6BJr2YT1JjGDOKbtOEHDA/do21aKG5PUb2lVQZ X-Received: by 2002:a05:6830:18f6:: with SMTP id d22mr10758118otf.59.1581919284095; Sun, 16 Feb 2020 22:01:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581919284; cv=none; d=google.com; s=arc-20160816; b=XgIOhLrbgB1T6OqzI09ZrzsO8m5CR4iZ2ta7AVIaIYeylTo1O9BzqAaxQGfgFuSwbu 2UIMkOwvB14cQTzPd/2gHbKe8Z5AJzX/imaNnwC1AHtoY8NpRvNwoiqcog2WH19jYOkQ wU94mjXPHEz2wo+g3lsn/DYjqQExT6DgdyBQ/Vi28POo800LrjTqR47Sin20d115YxUe yU4rohukA/BcCm1Qg9KuBH9hS2d6mHBO9YOUYDtqhXrr/9uhrWdKTZt7qXfX1zUNcZ+v /YQc8U2PQYvVZFN1UYfm7vzOwITPoy+Tk+yk/PUexhY09CsYVZTheLYphvD4NA+QeQ06 yUxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZXuMKcZyj/idpOZmGXYQMfUcYkxlliPEMPEeNplqlRo=; b=oxIivwKK7RpyY0urjfMldultO07Kj2QJlakrlOmuDJoJsYzZfW2MdPUa/QTxAiRog9 D/HZGl12U0xOULZZVRfaj1D4mvh1WKE/g1FA/fLGockkF3LuTemP5oUBfS9Gw35vOc7v EvhEM2Kn3GFUB4bYPPT+0bTeVB7sUIzXJeJdC4nEPF5JWqd3z256Xxwm2piJkJ8YZ+bb Daa9gCOA6LUpENIreMI3dCqY2sRgMQ58tcdNuEZ6JPfaZXpZ2lLpQpF44fkU8OpJEOdS IP+mLr6oYJE4UYHkJ5VBckGpgtv7pS8wG/z0EirsV35Mex5oH2ghcEH23cd7BxyYvXfQ ariQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jgvk7ken; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7si5950961oix.49.2020.02.16.22.01.11; Sun, 16 Feb 2020 22:01:24 -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=@linaro.org header.s=google header.b=jgvk7ken; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726339AbgBQF5n (ORCPT + 99 others); Mon, 17 Feb 2020 00:57:43 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:54302 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726185AbgBQF5m (ORCPT ); Mon, 17 Feb 2020 00:57:42 -0500 Received: by mail-wm1-f66.google.com with SMTP id g1so15824033wmh.4 for ; Sun, 16 Feb 2020 21:57:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=ZXuMKcZyj/idpOZmGXYQMfUcYkxlliPEMPEeNplqlRo=; b=jgvk7ken0jTTqqtTNtyefWsUXW4+4AkbkUxler3NbAYhbYQEw06uZfZ+o0P/Qx74NW eWx0lLZOQrFNzNlaVcxoVzNIjFdBWKL3h/bq8/DeM9OmdSrRfFIA/oj/DnSSxWio70Xs UUd74XVKYM463TiTXCtv2Y9LCPcLVgoQSgIX4fl+5dXzIWDV8AEFN3MTqzBwvG+83X4I bg23iGsdVN32JhgL1jXnAQnMdaRpy/nqE+If/bXn2zyyZ5VqQeizgiJnQLr/M4Bij6bq IsNhPgOvH2Moend9O5ivriLrjm6DsxtLkNSHsvAcfSrrtQjx653WJENd4yyKiOBdqx8j AMUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=ZXuMKcZyj/idpOZmGXYQMfUcYkxlliPEMPEeNplqlRo=; b=YMo0JR6XdhrJ8SI1Z/TdNu9MjJJtRntHzSqvWsOl/SLittc6PSXPTIlFouffEecKCI uat9S2khXHr9Bcx/7S50LPH3T4bT7bZsX1y+fFSdCAAIYxtiVDD2X9sKFZXhEm0STZfY /5uKdeml6PTaEFSnIQn+7K0sB1P+jdsn45uK6yypeqKELZC9cNB2vd1MoCezH7p70Q0h Q9Q1lx3yir+q7ftTF4QYv6e3eSC9QegVV/YHQblj6QtKHJXoaHDphh5oH2h9aIo/x+Ey stANuxNRv7pMaWEq5fPau0LzsqgEGJvr5KFPkjIu47+FWECG6QUOWRoworb7/yFFVfWS unnQ== X-Gm-Message-State: APjAAAWFBpHXwd+8wQJWp75cpNKMntAxZX7yBnLWh1f6oX/s3sgKlxxp d+r5rv+EPkvo9htpiITYwZAfzA== X-Received: by 2002:a1c:740a:: with SMTP id p10mr20128249wmc.65.1581919059979; Sun, 16 Feb 2020 21:57:39 -0800 (PST) Received: from apalos.home (ppp-2-87-54-32.home.otenet.gr. [2.87.54.32]) by smtp.gmail.com with ESMTPSA id v22sm18366526wml.11.2020.02.16.21.57.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Feb 2020 21:57:39 -0800 (PST) Date: Mon, 17 Feb 2020 07:57:36 +0200 From: Ilias Apalodimas To: David Miller 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 Message-ID: <20200217055736.GA15371@apalos.home> References: <20200216094056.8078-1-ilias.apalodimas@linaro.org> <20200216.195300.260413184133485319.davem@davemloft.net> <20200216.195957.2300038427552527679.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200216.195957.2300038427552527679.davem@davemloft.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 16, 2020 at 07:59:57PM -0800, David Miller wrote: > From: David Miller > Date: Sun, 16 Feb 2020 19:53:00 -0800 (PST) > > > 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. > > Actually this doesn't compile, please respin: Ooops :( I was compiling for armv7, stmmac and mvneta are included but netsec isn't. Sorry for the noise, i'll send a v2 > > drivers/net/ethernet/socionext/netsec.c: In function ‘netsec_uninit_pkt_dring’: > drivers/net/ethernet/socionext/netsec.c:1201:4: error: too few arguments to function ‘page_pool_put_page’ > page_pool_put_page(dring->page_pool, page, false); > ^~~~~~~~~~~~~~~~~~ > In file included from drivers/net/ethernet/socionext/netsec.c:17: > ./include/net/page_pool.h:172:6: note: declared here > void page_pool_put_page(struct page_pool *pool, struct page *page, > ^~~~~~~~~~~~~~~~~~ Thanks /Ilias