From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28B06C2BA83 for ; Mon, 17 Feb 2020 08:09:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F0AFD20725 for ; Mon, 17 Feb 2020 08:09:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qDz7cGOw"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="OnZsI0bb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F0AFD20725 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cHiEhgD+6q7oaWlWPTFzHv/bHXMhNoRJtH6J7xpqlt4=; b=qDz7cGOwtg5kod hChWmY9+PPdKCfR3ncnFIu1xdrH6gBp8ulNF6h6PvI3B0Y5Wis5KGqK26Sub747IL9H2R9NWGaCaY vacI5SUlEO4Zt1Mn7+fcMZCOCkB7n22+eEg3BTMEvoa17CvcXQP8EVMxRI0O/a2JCYS1Am9P+nxjN ubin5S61ZcgaFEkdNlhZNvt1MW2hB1//laObJ0Uw94NLxIiBQ8RvY0o/HYAkaH3WrmnBU+pMed1M8 b10+hHYTGMbYX8RRr31ZgRcKoor/TGwy7R3BN25zL8ZJLqq2zsPH48h2+sjTvuOivuz/ewEOsObTr uktrtiYFVDbFVMhNJtZA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j3bSa-0000a7-UU; Mon, 17 Feb 2020 08:08:56 +0000 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120] helo=us-smtp-1.mimecast.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j3bSX-0000ZO-IR for linux-arm-kernel@lists.infradead.org; Mon, 17 Feb 2020 08:08:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581926931; 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=EtqkCjqdRXLuRh9VlLNSDW1ljo1S6L5c70FnhGzTNhM=; b=OnZsI0bblNvbolzL7YFuQHX1bVDzFfhZLCjoJMhn2h04wBrc8aizDZRisYJbAnhTU2uBut jss2u6/QrCseAPirZzvKyJfsmZ1ltLSmuhZI8Mmt0CGg5DZKSrFvDhfbKYdSefJGDEagFe ujAyTeo7WPSO65GJq5qgyKF/ucBkg4M= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-152-9Nx8pL2hOKaLfoXLO9UU9Q-1; Mon, 17 Feb 2020 03:08:48 -0500 X-MC-Unique: 9Nx8pL2hOKaLfoXLO9UU9Q-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 562D0107ACC4; Mon, 17 Feb 2020 08:08:45 +0000 (UTC) Received: from carbon (ovpn-200-41.brq.redhat.com [10.40.200.41]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6396C1001B09; Mon, 17 Feb 2020 08:08:33 +0000 (UTC) Date: Mon, 17 Feb 2020 09:08:31 +0100 From: Jesper Dangaard Brouer To: Ilias Apalodimas Subject: Re: [PATCH net-next v2] net: page_pool: API cleanup and comments Message-ID: <20200217090831.56de425e@carbon> In-Reply-To: <20200217074608.GA139819@apalos.home> References: <20200217062850.133121-1-ilias.apalodimas@linaro.org> <20200217084133.1a67ae63@carbon> <20200217074608.GA139819@apalos.home> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200217_000853_685426_55CD8143 X-CRM114-Status: GOOD ( 17.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Coquelin , Jakub Kicinski , Alexandre Torgue , Daniel Borkmann , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, toke@redhat.com, John Fastabend , Alexei Starovoitov , linux-kernel@vger.kernel.org, brouer@redhat.com, Jassi Brar , Jose Abreu , Thomas Petazzoni , jonathan.lemon@gmail.com, Giuseppe Cavallaro , bpf@vger.kernel.org, lorenzo@kernel.org, "David S. Miller" , linux-arm-kernel@lists.infradead.org, Jesper Dangaard Brouer Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 17 Feb 2020 09:46:08 +0200 Ilias Apalodimas wrote: > On Mon, Feb 17, 2020 at 08:41:33AM +0100, Jesper Dangaard Brouer wrote: > > On Mon, 17 Feb 2020 08:28:49 +0200 > > Ilias Apalodimas wrote: > > > > > diff --git a/include/net/page_pool.h b/include/net/page_pool.h > > > index cfbed00ba7ee..7c1f23930035 100644 > > > --- a/include/net/page_pool.h > > > +++ b/include/net/page_pool.h > > > @@ -162,39 +162,33 @@ static inline void page_pool_use_xdp_mem(struct page_pool *pool, > > > } > > > #endif > > > > > > -/* Never call this directly, use helpers below */ > > > -void __page_pool_put_page(struct page_pool *pool, struct page *page, > > > - unsigned int dma_sync_size, bool allow_direct); > > > +void page_pool_release_page(struct page_pool *pool, struct page *page); > > > > > > -static inline void page_pool_put_page(struct page_pool *pool, > > > - struct page *page, bool allow_direct) > > > +/* If the page refcnt == 1, this will try to recycle the page. > > > + * if PP_FLAG_DMA_SYNC_DEV is set, it will try to sync the DMA area for > > > + * the configured size min(dma_sync_size, pool->max_len). > > > + * If the page refcnt != page will be returned > > > > Is this last comment line fully formed? > > Yes, but that dosen't mena it makes sense! > Maybe i should switch the last sentence to sometning like: > "If the page refcnt != 1, page will be returned to memory subsystem" ? Yes, that sounds better. -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel