Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1369639pxb; Thu, 28 Jan 2021 14:57:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4k3U7S8R2c6sHIXEDQeSck+bXotVJ8ZsgM7PgPmCluwyZzQd1ieinJEkWcnzTd8XnJDzl X-Received: by 2002:a17:907:6e6:: with SMTP id yh6mr1728296ejb.466.1611874667560; Thu, 28 Jan 2021 14:57:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611874667; cv=none; d=google.com; s=arc-20160816; b=uujD2X8LttTqd1W4WoLgPk2bdf6Q7A8tcvoEQIrU7LCAvJorIC/hxPxE/lwTPHwelp FgloZPRBSp87h6a+ktVb7SQ7MerUasMUgu6WnETHoE3Ty261VfTvmVKFI3eHcxEpm6bV roVT9AybFVhtw0b4qJP0B18aZ4nDoEpKF+Axkqf0ioTd+z1hwDc5uFWoFRDDufOhYzwb DWqiYluq+bRygQxoUyqyx1UXiqCWHiDQvmm5G63fYvA5mNsv1TWGSj7/rgMrNSFjE7LL bizZsZyw/SKms6dVTViASIbSrrzsyr9CH8biXpCj72ajauGXV28MDs/HOXesXIZOx5HM fYPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=jRc+9koAFnFriBYMbCECl8bNtNHOFnGAZDdGQS3iVDU=; b=Td3qVVSRIru/DdKGhhUZkHIEiRF9wAYTUW4zVDMpkS6zcNXtQpvN1W0xuWtANictrT kRvhgRFOmK+WoPkyiZgnzAadA/w7n3uomeduSt2VKxvPwi6LWRXdpO4BMg77gOvxjWe5 13GIzEu/0lhHPg/Kb8pxlqXMkr8Q1LqSwbTVVeO4oqXdZ8rRTKxF05dxbxc/U556IDFc kJMAyX0gKmHUbJHSH8yZi5GHbkYHNK0pTCBSDLMvWYUksZ7q5anffywtctwjccLKrlp8 rkCuasfyx3gXV5C8R2KaMKxEKYN/NmS4SeEiH20+t5e9Xwxl9gHaxFC6VGezlBIYoRuw MUVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VX8To192; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si3499088ejr.533.2021.01.28.14.57.23; Thu, 28 Jan 2021 14:57:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VX8To192; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231793AbhA1Wzy (ORCPT + 99 others); Thu, 28 Jan 2021 17:55:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231766AbhA1Wwg (ORCPT ); Thu, 28 Jan 2021 17:52:36 -0500 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37C1FC061355 for ; Thu, 28 Jan 2021 14:48:46 -0800 (PST) Received: by mail-pg1-x52f.google.com with SMTP id s23so4018435pgh.11 for ; Thu, 28 Jan 2021 14:48:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=jRc+9koAFnFriBYMbCECl8bNtNHOFnGAZDdGQS3iVDU=; b=VX8To19226WV8RDTkFQ5ObLuNZF9XVTO28Kn6srr7oOvy3bJROldWKCMUzp1PQKXf9 DxW/pzBX8qvpyf9JYyEV0tsfWnIQwh8StSLFabjSv9bq/h+LrM8BcShVwk+8h5JEIVAC m7rR/FINIdZ5nzLJ4PtqwDLyuNTB4ApMNbGX1tO8SauTFQvq0jZUXb6tQjVnZTTurC4o JnT9bk1zHAxQ/KJOZ2l5CO8dDG2tvWtV2Yqs/XVrEpJuA4GCbDFdVRNie/dpc5yVuHhc 6tpUXWl/fB3cIiNkDeifZnbig6ARvwbuNY0PAKYEKLOUWsV+N9z5P3YBgnwxTr3v/Wvb uKpQ== 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:in-reply-to:message-id :references:mime-version; bh=jRc+9koAFnFriBYMbCECl8bNtNHOFnGAZDdGQS3iVDU=; b=duKZcY8N+J+bAhQJ1PswxPN8QQ3/t6m71DwjkoR03G8o5mIfKZbADzCwKNRsXFcyOJ jWsg9yDqSb29zj4RwxYt2KQmhbkpV22KTPlIymrTe1hrjQ8atJKW5oTrGoBb8cVt8YYW cJGgfMacJId0x+6sop0+fFql7tOWxtYad4+YRFJGfjkvwD543PWW4tfUTfiHLs7wVNrW YocKdL+tu3ECRhMFWbRcwN3y+c/C3DYs8U65SWFk8+oX0DTan1+2s8SUOCjEJsio4Jak TYr0wXTMBynrNjpmtHLwXNrWBVBYmgznP+dO9rBPKvFBDS8M42Xu3sEdXj1R/YF+E7Ab p0Xg== X-Gm-Message-State: AOAM532wxlFlubYpksXF/UH0yl3t4Tl/VO18K0oXVVU+BBeEwrqSUuTd Pq7UDwPTdo6JErcQsDkSn0vzCA== X-Received: by 2002:a62:f943:0:b029:1a5:43f9:9023 with SMTP id g3-20020a62f9430000b02901a543f99023mr1512252pfm.75.1611874125638; Thu, 28 Jan 2021 14:48:45 -0800 (PST) Received: from [2620:15c:17:3:4a0f:cfff:fe51:6667] ([2620:15c:17:3:4a0f:cfff:fe51:6667]) by smtp.gmail.com with ESMTPSA id v1sm7110414pga.63.2021.01.28.14.48.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jan 2021 14:48:44 -0800 (PST) Date: Thu, 28 Jan 2021 14:48:43 -0800 (PST) From: David Rientjes To: Alexander Lobakin cc: "David S. Miller" , Jakub Kicinski , Yisen Zhuang , Salil Mehta , Jesse Brandeburg , Tony Nguyen , Saeed Mahameed , Leon Romanovsky , Andrew Morton , Jesper Dangaard Brouer , Ilias Apalodimas , Jonathan Lemon , Willem de Bruijn , Randy Dunlap , Pablo Neira Ayuso , Dexuan Cui , Jakub Sitnicki , Marco Elver , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-rdma@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v2 net-next 3/4] net: introduce common dev_page_is_reserved() In-Reply-To: <20210127201031.98544-4-alobakin@pm.me> Message-ID: References: <20210127201031.98544-1-alobakin@pm.me> <20210127201031.98544-4-alobakin@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 27 Jan 2021, Alexander Lobakin wrote: > A bunch of drivers test the page before reusing/recycling for two > common conditions: > - if a page was allocated under memory pressure (pfmemalloc page); > - if a page was allocated at a distant memory node (to exclude > slowdowns). > > Introduce and use a new common function for doing this and eliminate > all functions-duplicates from drivers. > > Suggested-by: David Rientjes > Signed-off-by: Alexander Lobakin Looks even better than I thought! (Since all of the changes are in drivers/net/ethernet/, I assume everything directly or indirectly includes skbuff.h already.) Acked-by: David Rientjes Thanks for doing this.