Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp223219rdb; Thu, 21 Dec 2023 07:29:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGSxyC1dh4rZU04OssC/T2esm6g++1Bl4ryaf20AbrCnhNakZcUySPppzwG2kH8L8Kcz1bw X-Received: by 2002:a17:902:dacd:b0:1d3:b078:ef87 with SMTP id q13-20020a170902dacd00b001d3b078ef87mr9704438plx.68.1703172560831; Thu, 21 Dec 2023 07:29:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703172560; cv=pass; d=google.com; s=arc-20160816; b=EnCsqS7d7STmZIY+hrFELWQw5+3cA/q8c2is5X31CYebgR11XOGWfOBNUKVuTD31xz 6bD644Vi9V1hAbvYlpIPk2+LnEetvo303VWxysihk22LEMxYqUOV4X8weo9w+cHyjEPy v+kl7dtq6pnqn74n3w/qx9QyZ1nTjt+gqbRLUkK7WjAWhxAhWMokS5a8bCZKYWPvehSO YakLVnExgj1ehQPgOBEd2fU1881GDFdmtEQ2kl1PMr5U1RBPKsJuoTNa07TxVSzF9J5u O2ggUnm5IZgOBhJwPQTRAvBPD0q5lANIL9dWctUxLAQj8KlaOkIjMkH4GygXtVpixMMN 9ngw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :in-reply-to:content-disposition:references:message-id:subject:cc:to :from:date:dkim-signature; bh=Q3Y+YMZolmaO266DwnqLoubOILXov7DpGddWSWtxXFs=; fh=TbLIA8nQwzNiE82b1iix7wQT7bxTK8oGoMR5CZefteA=; b=Qnr/jCaBgogJWt4Q8qnqWBc6rgwNOtwd7mbgqYd3Qg/7QvmuI0wntm0QgegQCWvyXk mPqtnOH8LgLT+55NH/EXPMrc/JJOTvTc77hM4GlCkWITvGOK4zT87TH1bnWe3eb1RcDj L5h5poNTSYIQ0w/9jpOKK3ZpfOTYjYfAbm+Uca4ubYkhBJJTLIeEAn9EGrlmPSwxFfVd ilCpbnLBI1MlNpXU77ynBD3rLodnQOxRihoHyFJSCO+AP/QwT8rJXCbU4GDpyrkW1Voi 3UwO9/YymtJTu5PuQ2o5puTr96vTMXmNqW1P1SMkVIO9OXioTdg6uDR0qDAyvwpEhNLX TnDg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=VhcqlfAt; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-8655-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8655-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z4-20020a170903018400b001d3f2e35af7si1709901plg.451.2023.12.21.07.29.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 07:29:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8655-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=VhcqlfAt; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-8655-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8655-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2F046B25C3A for ; Thu, 21 Dec 2023 15:27:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F010E5821D; Thu, 21 Dec 2023 15:25:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="VhcqlfAt" X-Original-To: linux-kernel@vger.kernel.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2048.outbound.protection.outlook.com [40.107.22.48]) (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 6A3DE55E66; Thu, 21 Dec 2023 15:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=enevgfcHALPDaSeII49Mu2QoAfkBNes9tZWJpaOutBHHXjRwVHuPOhfWtn6FL1Oz+iLl6bAlcRdvni9jJWZghzGNQFEs2pI6D1AfSZYxXrX12vC3zR3FC7gT+BRTrJhy/pGR4DYDf+TKIGS1ZLmGXTEN1OINyw499PPVSMogqvVye87gYYPJSlGTABkKooso/DH0d+Hn1dK8wvd5iQLXwZH6Q1UuiMmFrgtMgsA5aD1eQPYvHBSmcMlrrTfViC+5MpqlWdgc3mIVq42aqjIxogoiMWIcqM/ANKVFjjdLbUwch95b77d3xYKuF6zJZ2HHnQGJZetcu/Eg7m6Xt5AFEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=Q3Y+YMZolmaO266DwnqLoubOILXov7DpGddWSWtxXFs=; b=VwQgTGeoD2A54BEF2pHe+6HDyOp5qn0/QxMUOj8DrYO+DwDYBUwKYWyc021olic/yfCAaFj51Pgf40vMJf+HXbL4cBD6Atn4Kz8khq5j0YATpSaLh0f29JEoLJ01DhVCrgyKK0c3r43v8c+my9cRVt5V/KehRfq3HYIfyAxlfe1YHoRjetePDAaynSZM8kLxfFBRDUUW6PdpcNERGcqzqbknaInIrYjmFrEwX9Ms4s/4o9pf2hSeuSna8E22C4xvInd8SYhlJV70xQ1tPYVYrU3ja05NNC9SJPW48RwxhGdCUOyhVqnbcovS1SmamncLSlfnV3d26qRY6XDzWJwfzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q3Y+YMZolmaO266DwnqLoubOILXov7DpGddWSWtxXFs=; b=VhcqlfAtrnu2D/vJJ/63qLALTfSkUt7j6Bri7lm00vdWKK/z/SjTbQj1RxRCi/nti/XYC449pqHXjdT9Y7EL572CDDCNusTtfDA3CnPsQ0l6T40B0Wx6AjGtSNp+4SnMDObqpnpBhLGq9fFx8ePvuW+K/S6SEKx/2CgTrUmyaEo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) by VI1PR04MB9978.eurprd04.prod.outlook.com (2603:10a6:800:1d7::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.20; Thu, 21 Dec 2023 15:25:25 +0000 Received: from AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::dd33:f07:7cfd:afa4]) by AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::dd33:f07:7cfd:afa4%7]) with mapi id 15.20.7113.016; Thu, 21 Dec 2023 15:25:25 +0000 Date: Thu, 21 Dec 2023 17:25:21 +0200 From: Vladimir Oltean To: Roger Quadros Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, shuah@kernel.org, s-vadapalli@ti.com, r-gunasekaran@ti.com, vigneshr@ti.com, srk@ti.com, horms@kernel.org, p-varis@ti.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH net-next v11 01/10] selftests: forwarding: ethtool_mm: support devices with higher rx-min-frag-size Message-ID: <20231221152521.fhxpl3x2ahiwk5md@skbuf> References: <20231219105805.80617-1-rogerq@kernel.org> <20231219105805.80617-2-rogerq@kernel.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231219105805.80617-2-rogerq@kernel.org> X-ClientProxiedBy: AS4PR09CA0028.eurprd09.prod.outlook.com (2603:10a6:20b:5d4::16) To AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB6452:EE_|VI1PR04MB9978:EE_ X-MS-Office365-Filtering-Correlation-Id: a03495cf-d25b-4a81-b554-08dc02390e26 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cOoGbnxVnyk30CjGfJIzmk/g9TI7Lm9vUKzWdVwBvKg0E1io3VVpdpm3gWWpvH5cqrFfwYHc1A90ibyWL8KUGYI3Xq8jzJzHBc2hB12AzbBcDmGAN14Go5IWgsG60DuI+pRWtSJ0t0eTn4HyT3XiNLUGWMcmizVw0LgDLzleCffaaq2po93ulIiAGXXe78jpRz4ZHmjyBVjrVer8dfa/R25mMt2DcUuuBNGt0lZ3NFMsRBpmmVnRdo3+XHcZ4F3DfcaQ/mchXd3LSgaL9VPg4Sb0miFp0Fqhm1dYVWUfcszXij1nPWK+9oj/dwye0YO72lq3lDd/Oebi6HsgtgcJyKpuFExZg9sLx0AMW3WPkclcRbp/nfJkmgs89oF312Y9EcDNqUybuwaQUlNZi6apflfPa3qDlykUlXvNTVhrESgM/zGBD1O36Vuob0uYwzDYGGVgBKT5ByCcsVRwiYz4nEUoEa7NDKQ2G0goCa9b5CMSWqcbxc6rQcIe+IUUWQV70wIDN8TxMhJNBC7BcuEdve71wD16vA5UX1V5wM/b6aEp5nGVdb5F3xtM+rmYUsXC X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB6452.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7916004)(376002)(136003)(346002)(366004)(39860400002)(396003)(230922051799003)(1800799012)(64100799003)(186009)(451199024)(9686003)(26005)(6512007)(6666004)(1076003)(6506007)(86362001)(38100700002)(7416002)(83380400001)(4326008)(8936002)(8676002)(41300700001)(44832011)(66946007)(6916009)(66476007)(5660300002)(66556008)(6486002)(4744005)(2906002)(316002)(33716001)(478600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?3B4ZV0N7tNGG9ht+fLcMV93yA0Eyohv1qPrrZuVa4bYPNIu0LtrJfFDi3ERA?= =?us-ascii?Q?aDwA/ibO0y2PSCwU5kS7jusGccgSzILrxlJjkjtQ8CsOrilI1V5Qc9IIC/sU?= =?us-asc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XSdNzx?= =?us-ascii?Q?pL+b5IPprnM7jcELnxBRKV0poxNmbPUxPoRDGFAIXh2sLLzyCdS0s+I0649i?= =?us-ascii?Q?lUlIpWSW9ZfpMzi81g4E73jjtkIztTd+obJnqqTn2ZWcNuVRdGnQhXK+oxKF?= =?us-ascii?Q?xs6zoDBlFmnIUNo3bxy280pwacZtA99YrlRjWd2Ni1wuJGRoazl6Z1eJuS7c?= =?us-ascii?Q?4ILe0VGCqX0kX4Z2PZ8ulVoNOTZnYUr91nTiYYR8eTOFt2q/0W3TWsfrllzv?= =?us-ascii?Q?cVGkj9txgOYSw7fraJQ/JNAtvwLZFRXc4ZlJMkqBP0gEJsWZqaQnMjcEVszi?= =?us-ascii?Q?kETBgRWN0/J48B60Ra25gvNK1MY5/Mt1cgrQCTv79sThs4kdDB7L6n6Q2pgu?= =?us-ascii?Q?8Icfj8wdLB1rmqHf/kIA2EpGQYdqXDI1vPWInIrMG86XA7IN6kVNKEWkX/a9?= =?us-ascii?Q?h9LyFwDaiuDTfqFh6IpfObR144SG9gmKaUb7jJFZBXPBdCSRedXnch+F9XRP?= =?us-ascii?Q?Qk8jgJQU22h6Gx9WXkDRT5cyEI1qyI7UYT1+epeKPwCZS0UheVmj3kHVZ4P2?= =?us-ascii?Q?VuF6yMn/rGIUZddW2z3lEodvMugRb7Rg24QuOnX7NZbemVG9hHrRd8rn8C6H?= =?us-ascii?Q?eQ=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a03495cf-d25b-4a81-b554-08dc02390e26 X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB6452.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2023 15:25:25.5166 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 85x/oFClS99eLVUhY8Vtlv0m51nU/CHrtvIhoIGgziYOrrOMzB9GMUBIMv5GL8UmBHO6F90AdxkvVV0KqwN7+Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB9978 On Tue, Dec 19, 2023 at 12:57:56PM +0200, Roger Quadros wrote: > From: Vladimir Oltean > > Some devices have errata due to which they cannot report ETH_ZLEN (60) > in the rx-min-frag-size. This was foreseen of course, and lldpad has > logic that when we request it to advertise addFragSize 0, it will round > it up to the lowest value that is _actually_ supported by the hardware. > > The problem is that the selftest expects lldpad to report back to us the > same value as we requested. > > Make the selftest smarter by figuring out on its own what is a > reasonable value to expect. > > Cc: Shuah Khan > Signed-off-by: Vladimir Oltean > Tested-by: Roger Quadros > Signed-off-by: Roger Quadros > --- Tested-by: Vladimir Oltean