From patchwork Wed Jan 15 18:13:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Daley X-Patchwork-Id: 13940739 Received: from alln-iport-4.cisco.com (alln-iport-4.cisco.com [173.37.142.91]) (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 026141D5AD3; Wed, 15 Jan 2025 18:13:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=173.37.142.91 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736964804; cv=none; b=hh9HgdrgWJCSy5eeGvP0TuOMgBSMa8Nk7E3xo5bJ8KmqVQS7wHfag5P8UViYakoWAxcOp3F4UrR/Dm1aa+5i4Cyzr6vr/ZL+MteBVYleFqUMju0kx8cPBqcd2KTc5PKWlOnSSsq+YbksIEX/WoP2FLT2q0Ox1PYG7AaMDBy5ozc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736964804; c=relaxed/simple; bh=xiZTuScPICSHxiPZw6TpcBCR4iAOHgY5jeibxe1G/us=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=meARGq26Z/2A/C1ab5Nvm9Xu3sCkdNjSr6TjFT4cp2Mkc4PvIBcLbI5DMklqyKnOvZgL++Kx9CebvwOEZIGujuk1+GtSY0Lur1qq3+4e4IkPK+qL46GhZAzFt+DTrjwifsNIXqkfNXCK5svB/g7IKwWGzy4U9qn25zhnk4Aa+A8= 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=T+ifXIDj; arc=none smtp.client-ip=173.37.142.91 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="T+ifXIDj" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=657; q=dns/txt; s=iport; t=1736964802; x=1738174402; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9yPlq0paGW1t21A5XZQoIo8EZ1mLH+6G71g63v/l46o=; b=T+ifXIDjY6Nd/5Kf6D149O2fAYzLcJ1caTrSrOxicqtif/T7zBScgRJh 3kiW6L1jOfFhm3SzJovPDPO+5sajXfsHsuBH5TD+TiV/fjvUhhJhKEZXX mDx8nihqHnFp3UizuTB/UoV9JFqhqhl1AwRyai2W7xT+qACwuV3Hc8OGx A=; X-CSE-ConnectionGUID: HswO6xuaQGChputcmr+9Dg== X-CSE-MsgGUID: jesyjq9ZQqusJFRY37khQg== X-IPAS-Result: A0AEAABs+Ydnj47/Ja1aGwEBAQEBAQEBBQEBARIBAQEDAwEBAYF/BgEBAQsBhBlDSIxyX6cOgSUDVg8BAQEPRAQBAYUHinUCJjQJDgECBAEBAQEDAgMBAQEBAQEBAQEBAQsBAQUBAQECAQcFFAEBAQEBATkFSYYIhl02AUaBDDISgwGCZQOzeoIsgQHeM4FtgUgBhWqHX3CEdycbgUlEhH2BD4QBhXcEgjKBRYNunwRIgSEDWSwBVRMNCgsHBYE5OAMiCwsMCxQcFQIVHg8GEARtRDeCRmlJNwINAjWCHiRYgiuEXIRHhFOCR1SCR4IUeoEXhD1AAwsYDUgRLDcGDhsGPm4Hmzc8g3F7FKgvoQOEJYFjn2MaM6pTLodkkGoipCWEZoFnOoFbMxoIGxWDIlIZD446xDMlMjwCBwsBAQMJkXEBAQ IronPort-Data: A9a23:raGLoqjRN2HiE/pNXipTk1UqX1615hAKZh0ujC45NGQN5FlHY01je htvCD2Oa/eNZ2Px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xcHkwCg7ZE2AQ6LcXtkIKj+RopyqGlzPConez6VN4sLP+6SAFMkX8JvJ9EPrbU7pdYtF qltU5vbWJxnFG+YkwnxmLGh9+SOgjz33lrWZ0JIoVEXI/ZdeuA+0oW+JFOzrXNfXnbfWAlXi +TI6z43iKErH2xKZPs6otr1p79tlRDxQN5PYnY= IronPort-HdrOrdr: A9a23:nqvDp654H0d6fS9SJgPXwMPXdLJyesId70hD6qm+c3Nom6uj5q WTdZsgtCMc5Ax9ZJhCo6HjBED/exPhHPdOiOF7V4tKNzOJhILHFu1fBPPZsl7d8+mUzJ876U +mGJIObOHNMQ== X-Talos-CUID: 9a23:lQpwrW6dkbjzjvk3uNss1FULPZ41b3Tk41zQO1KkAmNzC+y5RgrF X-Talos-MUID: 9a23:w1C1JQ54CnCOAQGx6meCG41Kxoxq7r+/Cllco6wfptKmGxZBYGiejA24F9o= X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.13,207,1732579200"; d="scan'208";a="414017788" Received: from rcdn-l-core-05.cisco.com ([173.37.255.142]) by alln-iport-4.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 15 Jan 2025 18:13:14 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by rcdn-l-core-05.cisco.com (Postfix) with ESMTP id C6A141800022E; Wed, 15 Jan 2025 18:13:14 +0000 (GMT) Received: by cisco.com (Postfix, from userid 392789) id 9D8C320F2003; Wed, 15 Jan 2025 10:13:14 -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: netdev@vger.kernel.org, John Daley Subject: [PATCH net-next 0/1] selftests: drv-net-hw: fix pp_alloc_fail test error Date: Wed, 15 Jan 2025 10:13:11 -0800 Message-Id: <20250115181312.3544-1-johndale@cisco.com> X-Mailer: git-send-email 2.35.2 Precedence: bulk X-Mailing-List: netdev@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-05.cisco.com X-Patchwork-Delegate: kuba@kernel.org 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(-)