From patchwork Tue Nov 12 03:03:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Fang X-Patchwork-Id: 13871703 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2051.outbound.protection.outlook.com [40.107.247.51]) (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 CE93D206042 for ; Tue, 12 Nov 2024 03:19:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.51 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731381564; cv=fail; b=lyyWryHzpOb816KRhhFQA7Y1YqlsJZEGq1P9v5oDmLWbttyUTcznFJ7bAwNSKgjgh1Wl2f2xHEvmA03z3IxfykHsWmjwGb23EfpweyYyHPuF8qY4hztA3gCQSk/KSyLw1s7v1HqqrGGiCjdC+Ts01DTyPzxaaLEi/yxRlP6JYss= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731381564; c=relaxed/simple; bh=/7CRDnOM6+0lMHKcBhD8JAAYUXv5wjOaStduAjcxHuw=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=UuRWpwilqKHXkjjJNv7ijdoTyCb8g2hXirFXbupruPwVF4UmKD0OhDBosj3dGxWNZ1yxfXXP1BK5hXyk3nzw949GTx97pwL++WpC7Rck8IamsgMnK3YjduMAtNYovaBD3BGwMZ+LVEFyw5xjOrkVtGlQ93KF1h4a8DXIxQJ6mKg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=STH5uxzc; arc=fail smtp.client-ip=40.107.247.51 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="STH5uxzc" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tBhDsnvbp8YVIL99WbIhLCgHY9jax8KenXjtzuXSN4l1dlM/qDCHeKjM/WAZa7U0Cn6n97NgE8YDGGZ3XieStkqUX3I6HTR4KtahKeDF7GipltbBVb7xmcxWiJ+aayA6gaYMDpk0Gs2Rky4GVZFvVxuzIGjsvrc7Xid8RlLRJFKktwG+Xqgm6jjC72+UPoHaPFQBEtj/7b1CyjlMKcCL6fRqrNEYMvtHmp7+mPKkSpV92Zvem9B+v4OSyO5wWK4tXS5rS6Ryyqryr4dMSLmdIS5u5P2617w9hsOpbD7w58/rEBGCxT8mAYIFeRTfYj08R1w8L1hH6KMxYW7aB2q8jg== 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=gHJqYGagc3b2r9zBqBX6UOf3i7eeoxZKmLmmFYksZvM=; b=rfaHapPq7Ntz9DFLM6sJmEko+9OpANzMN9fTqiD8RoK2fIwX9v9iy7OZ71NTqiP81kK4+oU7cAOhH7E92+EfcyEOKLTozy6ujf1zzBvmntX0R9v2Mm0YM/nn0jP8bqfVZiu855jQQGtB0Ijgf4UhgKnuR5IXYQTt/LuVxnHoTTwEuzfFHGRzxQKpFpO/BmVCqcBNln9a3p7/ymD4UDEhFm3d5rD3Ucc/4ATsn3LDR1atiMf6dnZt1ZmRBDvsCEG/uOd6Z/ix5Z+XjXDcLf4HzRhRsRr7Ls+jtxtJOlsK7Y8uaL2cxXf53O3RnVFeXnbRSI27EjmWZW9saHRTDsZpbw== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gHJqYGagc3b2r9zBqBX6UOf3i7eeoxZKmLmmFYksZvM=; b=STH5uxzcTm+gXrvAhu8MjrbMYcNelK5vy5O0Af8EZtqphzvtaYiDeB7MCkeo3kDHc1NOvXIdYtK4W24hCYH07/FvNS79wIKpXf856qw6ru96/BZsy1l+HL3hZIe7vlG9hAVETPNxu4HqNxPzhgkfVuOcGTF3MOhZb7HlNwT59I7zgSvU/177OmFTzhurdfk2JMZmz+3ueq+Lkk5Z0U9/RbUuXKfP9uwzi7iPujtrCLkDUnbwFFg/WSve3SFS1KG0YAACqxLHa5KyO7sdh5bPXrfeWOvBF/cbnv9fr0uyZb1fzdq/hDk8EdfrOsAsOO7LOENaUsiIZyA9YmLoyFM0ZQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) by AS8PR04MB9110.eurprd04.prod.outlook.com (2603:10a6:20b:449::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Tue, 12 Nov 2024 03:19:17 +0000 Received: from PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db]) by PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db%7]) with mapi id 15.20.8137.027; Tue, 12 Nov 2024 03:19:17 +0000 From: Wei Fang To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, hawk@kernel.org, lorenzo@kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev Subject: [PATCH net] samples: pktgen: correct dev to DEV Date: Tue, 12 Nov 2024 11:03:47 +0800 Message-Id: <20241112030347.1849335-1-wei.fang@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SG2PR03CA0113.apcprd03.prod.outlook.com (2603:1096:4:91::17) To PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8510:EE_|AS8PR04MB9110:EE_ X-MS-Office365-Filtering-Correlation-Id: dd25a666-5f6e-4719-c5f7-08dd02c8ca50 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|52116014|7416014|366016|38350700014; X-Microsoft-Antispam-Message-Info: Qj4LWpotOssSSu11emOFluPejaF0amJ/Lr88cxULYyUjTyJM8fhqDxpAJN66LUX6aknUCSTa7VrunrGh+MTMwwiezDzibSkcswlweMTmrMtzPEy08nc7NrIxXFZwTKUezYQZk443dWICRYjoH3OLneowpu3RK3Td7pclnxtprNCaWJHR+RMaPjexHhya0QQ0gIDttDNCNnwac3SQtJN4ubO9AFuPPV3FP1mXvve/4V7WUehGLJ7oYVwksBAWYdG3z+29g7P9s0JTctGi2K4FTWnpWv23XWxnjjK/b+F1B9TkfCOis4fq4NPMVcGzTjwB6Y6qk+tuqOFVLh6VXsjPEsIpv/y0KcwhPiRfXvRC7GXPHPnVvzlyX2eKR3OCg01CI9Ho74Rv43kD5bNAAHJljkpowC1NlYzTDcMQE5VJ7WiLSTKZtJNiPrfTWsufnLz5W3sF7WFN00ScwLeD/gpxJtMrSyHz6lly5hJl1Epd4/99KtjjF1arrLHaH8tccGN1eMBhpvJP8xMer58NCof1Ev59yBrOoavclO7EJFEK9UWgFZNFa/1Lb6I66gtdS2CTw6015C5cgxoJ5IG002ARKOpiFzkuw8ZSqYgne8jqwY4StIgX9i1TxbMnu04YvHcNKb32Xzvs/CeSFt6B1j/DaslwsxEkzbJ2nMTJDrUPbtrF4NxpVN7FPgIQ1IUpnxKL4aTRODAtgNXp7XZMKybE8r3BijIvuTsdRhkguKrwy1cMQMPuj6USmlGmo2nifw4UNvUVJuYM8mjEtYehKQOAUoSzonBdLLovsonlUk4AKZaWHfU4BTfxN1NFZ7InYNLG4Js3ITYOdxCGiP1oKjYZhP4kIqDI/vkH7SQsgR7+klaWtDQNqX3rttrtOmwIYhh1d5Y2bEcWrNH8QkNWyEv25bOWQs3BNCD+VJieCLxljuVSYZFAmFykDtgec7Qpi8gmeOJ/9Tf0SN3Lrd0KrMJ4dupmNue6lm9xBSrY0XkKGTJQmQXIS7yUPz7kNJ6jznOCO6SVflDeItqF9M/H5V/Zydc9AWohqTP9MeBjAcPnDbKUyvgwQdkqpzDmdby4HeQ6IeJ8QPq3YZgAHZqxSKpDKv45pnVEb7kPnI6k/HZrFcprAcE3Pep+pNNxR3irBem5vJi4nezXFpT9z0FC7975+Iiv8sxbaEqbdJQVz+28b02aX1Pd+jCtV9YwCiMkXevCXTwyAAnMJHtsevRFuVs+twbxyRXA7wOjQIt7VtaquwLrpKsf5g24klLgd2e4iqjAFP8CAoTdnr5p64catg1QPuHKMw1ViDxj9jVIqI/sIr5XF8lpROOI+cN6P2WRur6ITOatMNKi2xIHNsehwx0+XdnuMNuN0IcwRgV5ISlRgXA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8510.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(52116014)(7416014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-Mess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ReL9FjIyhOrWtuSK2W4OF0FhqMMPQoRFFMcmc11Yi6PyDVzkbz78FyGHkShSIjlN/7REIbMwAiV/5KedoqtE62hitPKsNN5q4JY4QWAbtVyv1SOIExY772j1cPH9vT/FHPHNnCDiuocgkAmkZt/su6n1oLIFqlLj+vgJGqAsZBtwlMd0eQLYpkSSa4RosHMcZzt3DseOdC5Q4qTazVvo7HAOQ3phGVeY13LZIN4dE0kul2C8WYOur5tSqGM5Fm8VJibHjDuap/Jlm9CQm9TubqhGGn97IO2lc6AcbgdFoukXkE3Og7s9WPrTUH+OvFy1njLWJv3iXelR6QJkG519VLqa0reybKPBykb/TrI8xGpkoALyPMRmUMoZtKMawVRjBClOWIPp9O0xPQ82IKzeMa87PLXj1fgcOv/gMKfbVGrBon1qXv876kPvR2HnwYVfwPjwNERXkwnzICycUDSK0FZ6C2CDJrarwo9Sb72QrRR5/tQdpiGUAe3VM+6YUw6JxPyaq1jS5CgmbBXq92/ywFJ38BsKLEiuN2H+hNbFVQ8aiZp49DcJFqgR7 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: dd25a666-5f6e-4719-c5f7-08dd02c8ca50 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8510.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Nov 2024 03:19:17.0397 (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: oIaje5ljcbNN+QuioYJas7aTsFiGV4AFsJPpC4iKfKLtUrkIjz2RFNPPmY/Lh1YM5PogR0s6bWfdUhPkomjREQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9110 In the pktgen_sample01_simple.sh script, the device variable is uppercase 'DEV' instead of lowercase 'dev'. Because of this typo, the script cannot enable UDP tx checksum. Fixes: 460a9aa23de6 ("samples: pktgen: add UDP tx checksum support") Signed-off-by: Wei Fang Reviewed-by: Simon Horman Acked-by: Jesper Dangaard Brouer --- samples/pktgen/pktgen_sample01_simple.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pktgen/pktgen_sample01_simple.sh b/samples/pktgen/pktgen_sample01_simple.sh index cdb9f497f87d..66cb707479e6 100755 --- a/samples/pktgen/pktgen_sample01_simple.sh +++ b/samples/pktgen/pktgen_sample01_simple.sh @@ -76,7 +76,7 @@ if [ -n "$DST_PORT" ]; then pg_set $DEV "udp_dst_max $UDP_DST_MAX" fi -[ ! -z "$UDP_CSUM" ] && pg_set $dev "flag UDPCSUM" +[ ! -z "$UDP_CSUM" ] && pg_set $DEV "flag UDPCSUM" # Setup random UDP port src range pg_set $DEV "flag UDPSRC_RND"