From patchwork Sun Jan 5 21:30:35 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Tomlin X-Patchwork-Id: 13926818 Received: from GBR01-LO4-obe.outbound.protection.outlook.com (mail-lo4gbr01on2112.outbound.protection.outlook.com [40.107.122.112]) (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 F30101CEEAE; Sun, 5 Jan 2025 21:30:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.122.112 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736112642; cv=fail; b=q1LY33LZAi/g9/CZBRadV8U71vKor98pQlERk3KX7r00fEDQHhUWKV+eAAFCiEzSsxF8UDweqW7x+d2T8Z5fSOea5FLCsk6e21S6w0VyP7qm9fGkVqyBEtoFSKFAnR85V0WaXR5PLSJPRGOtMklwlfq+RdgAzwiHJbOctbsSTjc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736112642; c=relaxed/simple; bh=Zm96E2hsbQAAruZVve+WoYRJi3xV/NxOsAxWpf+jNyk=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=WZEn5BloGnKe5/Qk4+Xf/6RFB0FV8E2j5jJvp6iyR2awjEK0zIkLM838jOLgnyr6XVvUFxg9ftVyYeyIBPjK6KG/UrPCcES2yez8z+RYrbe2fjcWJiytM22PKXIWCgP9G0+BT78DnE5Aby//Sb9Y2pqXUTAjvLPEgcHhzBJXtrw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomlin.com; spf=pass smtp.mailfrom=atomlin.com; arc=fail smtp.client-ip=40.107.122.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=atomlin.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=r0Wd9Wjd3OvpzAy+CTe6rcEjUtphpMErMbHj5TwvZAY6oxzQhxlZFoeefBoeztOnKt6VGkUOUdEki+gy+tKjZj9sMxl7bwzm7uMLGEkM2JygDQk2CvGe6xSiVcwILHIK6/RAYjG7lEdz9J0n2qEc32c7fKBB7WHXiQ99wYi3TLe1RpP/GgACEAOjCJ1d4NSb2tA/HPHvQi2Jfxfa3wWuzmyHWjlOYQpcgxXX7wRv7dio/OC8aEPLLiD5Ws61u5pV0fz/GbIZE1o7PWC1FvmXw1iUq5rCqsA2AbKN4pnYGKgNOQGqDzFB6gYslh2Bf15aG7D6VV+tsg/mSTP77dSg2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rNhB9H+iLNKIKG5ReauGPCEswDh3s5/3NZ3XrftCPWk=; b=zHWk4JytSPd6B0f2pbaLr3zsrWmLdPh3CLVSv9/Ta/THfpSrUrHou/AiecQuKqJk/pvtHjuj576/83fpat3FTN25jja4ublWEbpuRWeoIivLdIC+JFfOA++HYY46SzB4JCCwvnsSofOuIdYGzfik+9QcZWpuWVPfSMWloqIGgNEbyjMwaLWKVkkEz3gNErD1XJTsgl36Aln6WUjiP/tIyhd2u0RC/M4c3WJ95yPia+Jf+BGXkq9e5rVU8PXvNep8E/uHP89TdD4caweq4negUBRztulSnJ5bQXCSkL49b+VJNXDfU0hrjWck0uDF023+X47IJMVZITMyA1Sl1I0nLw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=atomlin.com; dmarc=pass action=none header.from=atomlin.com; dkim=pass header.d=atomlin.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=atomlin.com; Received: from CWLP123MB3523.GBRP123.PROD.OUTLOOK.COM (2603:10a6:400:70::10) by CWXP123MB3461.GBRP123.PROD.OUTLOOK.COM (2603:10a6:400:7a::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8314.17; Sun, 5 Jan 2025 21:30:37 +0000 Received: from CWLP123MB3523.GBRP123.PROD.OUTLOOK.COM ([fe80::5352:7866:8b0f:21f6]) by CWLP123MB3523.GBRP123.PROD.OUTLOOK.COM ([fe80::5352:7866:8b0f:21f6%7]) with mapi id 15.20.8314.015; Sun, 5 Jan 2025 21:30:37 +0000 From: Aaron Tomlin To: ronak.doshi@broadcom.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: bcm-kernel-feedback-list@broadcom.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, atomlin@atomlin.com Subject: [RFC PATCH 0/1] vmxnet3: Adjust maximum Rx ring buffer size Date: Sun, 5 Jan 2025 21:30:35 +0000 Message-ID: <20250105213036.288356-1-atomlin@atomlin.com> X-Mailer: git-send-email 2.47.1 X-ClientProxiedBy: LO4P123CA0578.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:276::8) To CWLP123MB3523.GBRP123.PROD.OUTLOOK.COM (2603:10a6:400:70::10) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CWLP123MB3523:EE_|CWXP123MB3461:EE_ X-MS-Office365-Filtering-Correlation-Id: 4af4859a-cb41-401c-3fcb-08dd2dd0322b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-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1Rdg3qxsS29/6X7p1u5NnGWYQv4d3KZlSkO2qRy1Nd+C7oDb6Vebqjo5Pkg91cyrZxI8MxzUyb5FDd07XssngLM2pjbLm967m+KIRCuc3t+aYyaVwLrWcFQ+4MoXovdfv1cAekvb7fC5NJF4b9vzqnsV6lK08ixAuihjPLwevb+jGV1pKE3C5XxmZCqwBZ9Dfn8BQ82nm+aVewnaV/aEN2Q6CLz+75fnLV6M5ZtAEHoBPdfdfCHmtQxNJkh7MFSC9WNblUfsyr6PNR5jovvHdI/Kh6d74ueI4IZ944R3AQy/WEwGV8voURc6c+ilIXgJlOH3VU1GsxuXEIzvMWMVXMsCD+HJdV X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CWLP123MB3523.GBRP123.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cUpukgQly2FvK7LlfGsXk1OEmk2hMiQrNK/3W1v7g1N+4ZgaRWCcq2tXUl+g2pwMsvjkgeGKDvFxgIqAxLa2M+GzY3lVQP2IJanLQp79j3d1Tp24yRIlLd3fILCrFq/bAKvoRe4zV79RNld+bDhUu6V10SlaLDdAiYuWMN4sgnXpsalz2Nprt0IvF0XGelwG2dyB5V4gZfTssUU2DR7QVwCW+m351ql6fjXdA0q7Rdxq/jIYXeMbINywaXSTlTblk/pgN51BP2h3pGOFoullmbyVdDrvOnd6CzJL6q5JkrkGl5oaSkzXD9It8kY9QMyBruLrR5Qz9bJljHXzzjC31+tWtvqgi/I/S3zD9yv0PH3mC+oYI6jTOkBdm3dCkR7z8kIp7umiDmzQVVVL2l4qC542grCzheVjvxoccZ5ukG3Uz5Hh9n6M55L/HjFACVuwsUzsrEKJrF63jfoFGbSVlqjizTGDa8TOyNx3Ud7TG0qSYcmh02eWhsRRV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w8jodW78jFX4x36JKSk3PFyIhiF X-OriginatorOrg: atomlin.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4af4859a-cb41-401c-3fcb-08dd2dd0322b X-MS-Exchange-CrossTenant-AuthSource: CWLP123MB3523.GBRP123.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2025 21:30:37.7359 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e6a32402-7d7b-4830-9a2b-76945bbbcb57 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Zq5JlTCpFWxF5opTBniH51hq81hyQGZbujCRT+hXHsaUgYw6QDDMDFmOOXBTATEGmQWWZ8rApAiIDGbd4ce6KQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWXP123MB3461 X-Patchwork-State: RFC Hi Ronak, Paolo, I managed to trigger the MAX_PAGE_ORDER warning in the context of function __alloc_pages_noprof() with /usr/sbin/ethtool --set-ring rx 4096 rx-mini 2048 [devname]' using the maximum supported Ring 0 and Rx ring buffer size. Admittedly this was under the stock Linux kernel-4.18.0-477.27.1.el8_8 whereby CONFIG_CMA is not enabled. I think it does not make sense to attempt a large memory allocation request for physically contiguous memory, to hold the Rx Data ring that could exceed the maximum page-order supported by the system. I am not familiar with drivers/net/vmxnet3 related code. Please let me know your thoughts. Thank you. Aaron Tomlin (1): vmxnet3: Adjust maximum Rx ring buffer size drivers/net/vmxnet3/vmxnet3_defs.h | 4 ++++ 1 file changed, 4 insertions(+)