Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp609572pxb; Wed, 27 Jan 2021 16:39:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJx6V7G4EnyV9EAYeKBo5Oqj8BZ+Fck4cxpeVlC+Y1njkQk5wA4USeqnhs4VdV44r9FM0Zxm X-Received: by 2002:a17:907:3345:: with SMTP id yr5mr8807763ejb.50.1611794376734; Wed, 27 Jan 2021 16:39:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611794376; cv=none; d=google.com; s=arc-20160816; b=wnK5bKU2BhFHxRzEGDEpgRpvrBZhG14LWOm/d3iXt/mYF1oG7KTKfrHud+DwN5CQcY SeY947UawGKRXl2GpICjalsIdYDEnH4/s4PYaCrg7leqjdXLAPwUCG8hujs+71O7QiKt UqoHvXCwaBgDXFlUWDeHiGSY4zcIYvhH4oZZboE+JfcwqGPD3YjWD3DMvDLmIKELukfX 8NlBbbYHv8EUyRWi/u0PHf2IbylM4LBq3KLTxVI5QZxS+qnksgbpvHYHyNKFSjzRedR+ NtJne/YInQRIwnRzc6gvTwZEICHMZ6S8148N1+K38gwrZBBRk102TqBcY8iTZCDgNUXf V7Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=ti/er7Ngkf0Z1QMt7NWg9qD+pb91lptRnel9aQY7hMs=; b=w4ZJSxhId8Fyhy+3cxsjaEUnAqB86Ue8ovAzmetx0E/FGYAJTLpuq30gp/IS2eUfOQ 68oHHzR6hlY5egmOF6ak0rdblpDXCAlzaDGn5L1Jn3F3xyse7aQrTuKJjDb3ETUAf9C2 X7J6Ym3HDbiOebrSMgejXpg50Ao18sqOU+fIh1gJjWK5pdDD3wNvUUczoimX0OqISJvA 7WohAbzLRowfZbsMZYqBRxtM+vunOWW58UBhFNDCujYvoGb80iQMSUrsbdWlUQ0lyD5j wXu3FHXU/i3Q3loI2FKaxi8hu0tl/8ecrfNmDF7ODJJeu5M3b2A797TQnclsJ3ylnSUU O/wg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s25si1605551ejz.751.2021.01.27.16.39.12; Wed, 27 Jan 2021 16:39:36 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231805AbhA0VuM (ORCPT + 99 others); Wed, 27 Jan 2021 16:50:12 -0500 Received: from mga17.intel.com ([192.55.52.151]:44159 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231127AbhA0VsT (ORCPT ); Wed, 27 Jan 2021 16:48:19 -0500 IronPort-SDR: lcRO+nBbwlxD5OKQ9floYnPqvizXa/TpKNsXPOC2RGM3wZ0MgRHL4W5twcWIKDXDS+qBKmCR6V trTxUngA0I8w== X-IronPort-AV: E=McAfee;i="6000,8403,9877"; a="159912616" X-IronPort-AV: E=Sophos;i="5.79,380,1602572400"; d="scan'208";a="159912616" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2021 13:47:30 -0800 IronPort-SDR: x8SX2Z/eZDC0uopz6q0GvPObDP9bsfjhVBCSv7w/mie7EoujaaoDFv19suwWd/v2MLVVLnlSIt K8UvsSEBqhkg== X-IronPort-AV: E=Sophos;i="5.79,380,1602572400"; d="scan'208";a="573409951" Received: from jbrandeb-mobl4.amr.corp.intel.com (HELO localhost) ([10.212.44.59]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2021 13:47:28 -0800 Date: Wed, 27 Jan 2021 13:47:26 -0800 From: Jesse Brandeburg To: Alexander Lobakin Cc: "David S. Miller" , Jakub Kicinski , David Rientjes , Yisen Zhuang , Salil Mehta , 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() Message-ID: <20210127134726.00003605@intel.com> In-Reply-To: <20210127201031.98544-4-alobakin@pm.me> References: <20210127201031.98544-1-alobakin@pm.me> <20210127201031.98544-4-alobakin@pm.me> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 10 ++-------- > drivers/net/ethernet/intel/fm10k/fm10k_main.c | 9 ++------- > drivers/net/ethernet/intel/i40e/i40e_txrx.c | 15 +-------------- > drivers/net/ethernet/intel/iavf/iavf_txrx.c | 15 +-------------- > drivers/net/ethernet/intel/ice/ice_txrx.c | 11 +---------- > drivers/net/ethernet/intel/igb/igb_main.c | 7 +------ > drivers/net/ethernet/intel/igc/igc_main.c | 7 +------ > drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 7 +------ > drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 7 +------ > drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 7 +------ > include/linux/skbuff.h | 15 +++++++++++++++ > 11 files changed, 27 insertions(+), 83 deletions(-) For the patch, and esp. for the Intel drivers: Reviewed-by: Jesse Brandeburg