From patchwork Tue Jan 14 22:31:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Daley X-Patchwork-Id: 13939587 Received: from alln-iport-7.cisco.com (alln-iport-7.cisco.com [173.37.142.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D039723245F; Tue, 14 Jan 2025 22:32:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=173.37.142.94 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736893930; cv=none; b=K9haW1sJQva7XsDaEGml5g9PGr25Lmk0nmszBF253aDRRDyOGZrbeefIzb8g8+S/WJ1p08UAkLrBvYPaCXnmn/Yo1J6XptULKuyrGmgYfPnkYbI802rZCbY+zckSt9BxHGoqCEMOmJZ0rqt9yl1dgeHLVY0crOZ192DHJKi9+Hk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736893930; c=relaxed/simple; bh=xiZTuScPICSHxiPZw6TpcBCR4iAOHgY5jeibxe1G/us=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=EoxmPM0IeZy0KSmBDP5vL5DC6mJj7fmGKEi6b264GuM+mJA7OLBj4MnfAaqgRzFp3GBbLwlK9zVBOPAA4XzkBkSqtrfOZZ8M/tvJdzUNwfo/154o2fUExKzTnJpQe2m9hxdbFOGGiyRPFYQ0rnhG8zBOrnkNdN96vj9ZoSWLXP4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cisco.com; spf=pass smtp.mailfrom=cisco.com; dkim=pass (1024-bit key) header.d=cisco.com header.i=@cisco.com header.b=cOcABCP5; arc=none smtp.client-ip=173.37.142.94 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cisco.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cisco.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=cisco.com header.i=@cisco.com header.b="cOcABCP5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=657; q=dns/txt; s=iport; t=1736893928; x=1738103528; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9yPlq0paGW1t21A5XZQoIo8EZ1mLH+6G71g63v/l46o=; b=cOcABCP5I+Mr885Gzd9BmaSA/9id6hwaPlkeFcSnFw+7gKbajLqNt1wU ZtVmIdpmbYIxCw83XZ2JcDd2XXXoMVGy1AntEHMOWCBT+Jb+BClW2h9Mq 6UmoW8JXo+lcTGYEg1tIUGRQES65NS/YYBGF4ksjJvxIMnBVy/Peec5J6 I=; X-CSE-ConnectionGUID: FvHrCofxTauZMd91Xnkk6A== X-CSE-MsgGUID: ZuAX36gqSza1rx1Idb5fUQ== X-IPAS-Result: A0AEAADq5IZnj5L/Ja1aGwEBAQEBAQEBBQEBARIBAQEDAwEBAYF/BgEBAQsBhBlDSIxyX6cNgSUDVg8BAQEPRAQBAYUHinYCJjQJDgECBAEBAQEDAgMBAQEBAQEBAQEBAQsBAQUBAQECAQcFFAEBAQEBATkFSYYIhl02AUaBDDISgwGCZQOzMoIsgQHeM4FtgUgBhWqHX3CEdycbgUlEhH2BD4QBhXcEgjSBRYNunnlIgSEDWSwBVRMNCgsHBYE6OgMiCwsMCxQcFQIVHhAGEARtRDeCRmlJNwINAjWCHiRYgiuEXIRHhFWCR1SCR4IUeoEXhDdAAwsYDUgRLDcGDhsGPm4Hmzs8g3J7FKgvoQOEJYFjn2MaM6pTLodkkGoipCWEZoFnOoFbMxoIGxWDIlIZD446w0olMjwCBwsBAQMJkVMBAQ IronPort-Data: A9a23:IpqR3alVTK3UUDY3qYe0Ph/o5gxvJkRdPkR7XQ2eYbSJt1+Wr1Gzt xIeWWDXOfnfM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ktLMeu1Nb4m9CpTFXV1bT6AhSN5Ca7xt/h3SnfCVeV8nACV5aIvF 6FdEyhBa9wTIgn6F8M1McOg89E6Lkjz1Wpj/UONOVACQnKpfCSRkveMQ+cl3HBm4vaf3Sfmn 4Cd6w== IronPort-HdrOrdr: A9a23:MlMdiqEY8v93IWVDpLqE48eALOsnbusQ8zAXPo5KJiC9Ffbo8v xG88576faZslsssRIb6LK90de7IU80nKQdieJ6AV7IZmfbUQWTQL2KlbGSoAEJ30bFh4lgPW AKSdkbNOHN X-Talos-CUID: 9a23:q0nqhWo8bawuG97V14FSeQbmUe47Umf2y3nAH0alO0NlGeSlT1yTpooxxg== X-Talos-MUID: 9a23:H/MmKQ3ud5j6tfBDpuq5B5sYmzUj0bmHOBtTnow9qcDdLzwpGjuX0TqKe9py X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.12,315,1728950400"; d="scan'208";a="412878727" Received: from rcdn-l-core-09.cisco.com ([173.37.255.146]) by alln-iport-7.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 14 Jan 2025 22:32:02 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by rcdn-l-core-09.cisco.com (Postfix) with ESMTP id 4739718000233; Tue, 14 Jan 2025 22:32:02 +0000 (GMT) Received: by cisco.com (Postfix, from userid 392789) id 1DB5420F2003; Tue, 14 Jan 2025 14:32:02 -0800 (PST) From: John Daley To: shuah@kernel.org, kuba@kernel.org, sdf@fomichev.me, willemb@google.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: John Daley Subject: [PATCH net-next 0/1] selftests: drv-net-hw: fix pp_alloc_fail test error Date: Tue, 14 Jan 2025 14:31:58 -0800 Message-Id: <20250114223159.29677-1-johndale@cisco.com> X-Mailer: git-send-email 2.35.2 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Outbound-SMTP-Client: 10.193.184.48, savbu-usnic-a.cisco.com X-Outbound-Node: rcdn-l-core-09.cisco.com The tool pp_alloc_fail.py tested error recovery by injecting errors into page_pool_alloc_pages(). Perhaps due to the netmems conversion, page_pool_put_full_page() does not end up calling that function. page_pool_alloc_netmems() seems to be the base function for all the the allocation functions in the API call, so put the error injection there instead. Signed-off-by: John Daley John Daley (1): page_pool: inject pp_alloc_fail errors in the right place net/core/page_pool.c | 2 +- tools/testing/selftests/drivers/net/hw/pp_alloc_fail.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)