From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8BD5645CE3 for ; Mon, 11 Nov 2024 07:37:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8481D40685; Mon, 11 Nov 2024 07:37:12 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2073.outbound.protection.outlook.com [40.107.94.73]) by mails.dpdk.org (Postfix) with ESMTP id 9F88440685 for ; Mon, 11 Nov 2024 07:37:10 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qb1Ix4HFENYlCGBPUAIDbHgNw+qtkW9658hqsbNPhuQLstU+2GVWdO66WhZkaDNcmAR0kmaxQM+LmLGa1zfPK9ZjquaT1F5oxt8v3oywoKWyVI7D7kF5WmvW4Mw6GL+zdWTY+Nik6n9Z8F+XMP03Q3r3odtMiBMQfyu1ZgJGgJpQQh+1g51PeRlxut11uI92YBK74dyiCzHZdpVYIiTq68+LSg0f+OO5SLLjNiS675eCzdYgwMeZIlHsbkQIqpmKEHEnak9c6JT6+Gsas0Wiq2jgWHX02y9cAcW1oXSAiaUag07pTMmDTBFo/4n7wlnMJEg4QRen/fNUNWVk1GyV0Q== 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=H1mA/uR766MWTw9TOBAWjwAiwSdGSl/5t8eymZcDgEs=; b=orAQa8XA9iP/x98nX6LMEffnWQ2VXyCs9ByA1EPpuzYeua1SNHynSti+15p9PxxMfq/kDsAmBZVKfB9f7q6S4NXgQ0dzjmmW1fPrtru2Vu4V9XX8VB7uem3wzQsndYajz8ryo6IGqjgAYlt0Mq2dyzARMfFIJUCFUFAEg4sQnjMH2/lvL4Kq2WxC7n64brbf7nykg41oo5jLYXJN1BIIPruKVOa0dPthKpkeNcfc3+/nfmBnNqT5YYog4H3Mrhf+BeATx6I6WfpORFxTFQ6pvw6lficvY1zVF8nmwnib+UOXkVVAy3CtK5HkTQz2BViEjZ15igOemhozlgfV2BrODw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=networkplumber.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=H1mA/uR766MWTw9TOBAWjwAiwSdGSl/5t8eymZcDgEs=; b=Ta3GKYFN/yqtCa5MZA2r/9RwrtZukWcKuzUle4lkVqjUt5nqzMHs0jYx/llrpw7C6drTNK1TBcnlDttl9g2yLND5rDZKbHuRFSpa9O2skzks23tuLPUYz1jSic19BYS/+Q4l77+/CzrLDs0Zh8e4uq7sFf/RVeIDKqi8gJW7Y+iASLW1I54U8gcXDHtsVR0HFHJu7phmo5u5icDYiO9nUVvYUu6iFKPibZRu1akgsmaq0NDl8bQeQMYkoO8zalhMVrJptHmAMgzF1wfhVinYC2SCTJ2pi0JN8zy4mTUcn4ORXvWPP+eh1+dUP+ZxS7T2vpcsQioyu0gMby5vnptZ8A== Received: from BL0PR02CA0118.namprd02.prod.outlook.com (2603:10b6:208:35::23) by DM4PR12MB6230.namprd12.prod.outlook.com (2603:10b6:8:a7::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.20; Mon, 11 Nov 2024 06:37:04 +0000 Received: from BN2PEPF000044A5.namprd04.prod.outlook.com (2603:10b6:208:35:cafe::fd) by BL0PR02CA0118.outlook.office365.com (2603:10b6:208:35::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.27 via Frontend Transport; Mon, 11 Nov 2024 06:37:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN2PEPF000044A5.mail.protection.outlook.com (10.167.243.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.14 via Frontend Transport; Mon, 11 Nov 2024 06:37:04 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 10 Nov 2024 22:36:51 -0800 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 10 Nov 2024 22:36:49 -0800 From: Xueming Li To: Stephen Hemminger CC: , Ferruh Yigit , dpdk stable Subject: patch 'app/testpmd: remove unnecessary cast' has been queued to stable release 23.11.3 Date: Mon, 11 Nov 2024 14:28:02 +0800 Message-ID: <20241111062847.216344-77-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241111062847.216344-1-xuemingl@nvidia.com> References: <20241111062847.216344-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF000044A5:EE_|DM4PR12MB6230:EE_ X-MS-Office365-Filtering-Correlation-Id: d26cc1d0-4c1e-42cd-46e5-08dd021b4195 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|82310400026|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?WQxy+7MUWvPFD4ZYnXtfCIHU2RTa+w221mM1VeGgT9SE23ouBcnXf2P1loFN?= =?us-ascii?Q?Fd+mehY/fbSALQHn3ki6XROLSNgb7xtOV+pfzqJad6oSfA/rWHynMjdhoi9A?= =?us-ascii?Q?qUvbdT0b/PcNrbH1HPHLrb9cJaFoAL8XS2PuxoHtFCgaV+qDrSopiXTfWIxI?= =?us-ascii?Q?buTvkduKtlstKxNXQGx3goi0bKnjQ+Bb2MeQM7YeC9ZY7WREAxjQ4CPpvIEq?= =?us-ascii?Q?RoN83aCMGtFtnWoxte/DKZR+p+tD7s7E/wwrI0ZCMQuq2iPrIhXZLq2rYU/s?= =?us-ascii?Q?PT/hibygwUY0rbPjltwgTHNTz2Tg01ZUpWNwbwO+gOqH9KSBVIqDuWIlkjmM?= =?us-ascii?Q?gboI17gUtCpHwZWtA0dFqleLx0sUNxWRZkrJrI3Em1h7TqFlfOJfYQ5baBmO?= =?us-ascii?Q?BpuNQCctYFlVAHFKp9zT/6TGOWcFDyRFLTn/LvH5nK042Sy8W9s1jx0gokus?= =?us-ascii?Q?iJyv/phaaPxFKEsylfbAVBh0CeBT9rZzDrrWrkXb7emGzoZPe2TsEjDH4prC?= =?us-ascii?Q?CwfN5wNugWJnoZ+KgqWutTM8fOOIAReNX0vZ4aEocDjE/n2BXysMgk3q+kCb?= =?us-ascii?Q?eysoSB4wsmmkjrBvqaAIueV6/PUMSyDsDrfWw7ppoXNWa/vxmXLjZtSpNVcn?= =?us-ascii?Q?UCuvckrKIL5zLCVgJe7whpcKS3xlR2nSIzqWp8ur072SmzMHNa7if5u9LjY/?= =?us-ascii?Q?hP5vWw7gkicJpIlGHYdz0DDe8CiDX6zcOtEJl35PIY07e3i/VfxZLMYrIVRA?= =?us-ascii?Q?thkuVPLcLJNRJhA/sZW80SradruWRjzCnUVmbVKNNBodjf24sTU28u07ikPE?= =?us-ascii?Q?46SAUUHv2epo3Rd7+nZA+OGJDdhCMDDd8ZqomA9pdygbELyjxPLLBhHwkI0B?= =?us-ascii?Q?C/Ek49NP36qmd8IwZUYSUK6iDbwFZFtzRDeaMegF6XFKhe5R54bDbXZKBsS4?= =?us-ascii?Q?ylva4T72SlTXcbuPkFYRC5t3mXuL0TeBOmhBNTL7Djyvr37V9i9FVaDlRNMp?= =?us-ascii?Q?czfWsplR47bs4NWF97OgIQoAyxu9bSY/CnLZSrq/oGX2o7ZH9PwDAz8almp8?= =?us-ascii?Q?smUBLVtZz7zoNdHOrmTixahCPAl6oMAyGU8AEm6VLEMwHfVR/xJH5eEfqISc?= =?us-ascii?Q?GbgiRp1he1FETJ5/FMVzC0e66/xgtf2gpcBjeAz/tnyi7nh3QU5qUH4oxR98?= =?us-ascii?Q?0qu04+D0x4Ym7D4T45VEXNLmgUirVYHogbL4TPk/iu3MER04Is+nF439xBzT?= =?us-ascii?Q?F0z+TrieyzptChaqgJCQaYhofAB5mZW+9HkPRktjrUAtY3BCjvw7wrfVq1dt?= =?us-ascii?Q?PWggNTlV7v4ruONEapTtBGLq1b7WGSh1JlmdiRdC3fTnBbnwmPVxdtaiq8os?= =?us-ascii?Q?w8Dft/hqKpjjQ5ECX4N3JBaLXFlpE5vwsrS+26vCd4M+aazvDw=3D=3D?= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230040)(36860700013)(82310400026)(1800799024)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 06:37:04.1965 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d26cc1d0-4c1e-42cd-46e5-08dd021b4195 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN2PEPF000044A5.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6230 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 23.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/30/24. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=a32bb4a902153541e12f7aa349260344705e6812 Thanks. Xueming Li --- >From a32bb4a902153541e12f7aa349260344705e6812 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 23 Aug 2024 09:26:01 -0700 Subject: [PATCH] app/testpmd: remove unnecessary cast Cc: Xueming Li [ upstream commit 0a3901aa624a690faa49ca081c468320d4edcb7a ] The list of builtin cmdline commands has unnecessary cast which blocks compiler type checking. Fixes: af75078fece3 ("first public release") Signed-off-by: Stephen Hemminger Acked-by: Ferruh Yigit --- app/test-pmd/cmdline.c | 456 ++++++++++++++++++++--------------------- 1 file changed, 228 insertions(+), 228 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index d9304e4a32..bf6794ee1d 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -13047,240 +13047,240 @@ static cmdline_parse_inst_t cmd_config_tx_affinity_map = { /* list of instructions */ static cmdline_parse_ctx_t builtin_ctx[] = { - (cmdline_parse_inst_t *)&cmd_help_brief, - (cmdline_parse_inst_t *)&cmd_help_long, - (cmdline_parse_inst_t *)&cmd_quit, - (cmdline_parse_inst_t *)&cmd_load_from_file, - (cmdline_parse_inst_t *)&cmd_showport, - (cmdline_parse_inst_t *)&cmd_showqueue, - (cmdline_parse_inst_t *)&cmd_showeeprom, - (cmdline_parse_inst_t *)&cmd_showportall, - (cmdline_parse_inst_t *)&cmd_representor_info, - (cmdline_parse_inst_t *)&cmd_showdevice, - (cmdline_parse_inst_t *)&cmd_showcfg, - (cmdline_parse_inst_t *)&cmd_showfwdall, - (cmdline_parse_inst_t *)&cmd_start, - (cmdline_parse_inst_t *)&cmd_start_tx_first, - (cmdline_parse_inst_t *)&cmd_start_tx_first_n, - (cmdline_parse_inst_t *)&cmd_set_link_up, - (cmdline_parse_inst_t *)&cmd_set_link_down, - (cmdline_parse_inst_t *)&cmd_reset, - (cmdline_parse_inst_t *)&cmd_set_numbers, - (cmdline_parse_inst_t *)&cmd_set_log, - (cmdline_parse_inst_t *)&cmd_set_rxoffs, - (cmdline_parse_inst_t *)&cmd_set_rxpkts, - (cmdline_parse_inst_t *)&cmd_set_rxhdrs, - (cmdline_parse_inst_t *)&cmd_set_txpkts, - (cmdline_parse_inst_t *)&cmd_set_txsplit, - (cmdline_parse_inst_t *)&cmd_set_txtimes, - (cmdline_parse_inst_t *)&cmd_set_fwd_list, - (cmdline_parse_inst_t *)&cmd_set_fwd_mask, - (cmdline_parse_inst_t *)&cmd_set_fwd_mode, - (cmdline_parse_inst_t *)&cmd_set_fwd_retry_mode, - (cmdline_parse_inst_t *)&cmd_set_burst_tx_retry, - (cmdline_parse_inst_t *)&cmd_set_promisc_mode_one, - (cmdline_parse_inst_t *)&cmd_set_promisc_mode_all, - (cmdline_parse_inst_t *)&cmd_set_allmulti_mode_one, - (cmdline_parse_inst_t *)&cmd_set_allmulti_mode_all, - (cmdline_parse_inst_t *)&cmd_set_flush_rx, - (cmdline_parse_inst_t *)&cmd_set_link_check, - (cmdline_parse_inst_t *)&cmd_vlan_offload, - (cmdline_parse_inst_t *)&cmd_vlan_tpid, - (cmdline_parse_inst_t *)&cmd_rx_vlan_filter_all, - (cmdline_parse_inst_t *)&cmd_rx_vlan_filter, - (cmdline_parse_inst_t *)&cmd_tx_vlan_set, - (cmdline_parse_inst_t *)&cmd_tx_vlan_set_qinq, - (cmdline_parse_inst_t *)&cmd_tx_vlan_reset, - (cmdline_parse_inst_t *)&cmd_tx_vlan_set_pvid, - (cmdline_parse_inst_t *)&cmd_csum_set, - (cmdline_parse_inst_t *)&cmd_csum_show, - (cmdline_parse_inst_t *)&cmd_csum_tunnel, - (cmdline_parse_inst_t *)&cmd_csum_mac_swap, - (cmdline_parse_inst_t *)&cmd_tso_set, - (cmdline_parse_inst_t *)&cmd_tso_show, - (cmdline_parse_inst_t *)&cmd_tunnel_tso_set, - (cmdline_parse_inst_t *)&cmd_tunnel_tso_show, + &cmd_help_brief, + &cmd_help_long, + &cmd_quit, + &cmd_load_from_file, + &cmd_showport, + &cmd_showqueue, + &cmd_showeeprom, + &cmd_showportall, + &cmd_representor_info, + &cmd_showdevice, + &cmd_showcfg, + &cmd_showfwdall, + &cmd_start, + &cmd_start_tx_first, + &cmd_start_tx_first_n, + &cmd_set_link_up, + &cmd_set_link_down, + &cmd_reset, + &cmd_set_numbers, + &cmd_set_log, + &cmd_set_rxoffs, + &cmd_set_rxpkts, + &cmd_set_rxhdrs, + &cmd_set_txpkts, + &cmd_set_txsplit, + &cmd_set_txtimes, + &cmd_set_fwd_list, + &cmd_set_fwd_mask, + &cmd_set_fwd_mode, + &cmd_set_fwd_retry_mode, + &cmd_set_burst_tx_retry, + &cmd_set_promisc_mode_one, + &cmd_set_promisc_mode_all, + &cmd_set_allmulti_mode_one, + &cmd_set_allmulti_mode_all, + &cmd_set_flush_rx, + &cmd_set_link_check, + &cmd_vlan_offload, + &cmd_vlan_tpid, + &cmd_rx_vlan_filter_all, + &cmd_rx_vlan_filter, + &cmd_tx_vlan_set, + &cmd_tx_vlan_set_qinq, + &cmd_tx_vlan_reset, + &cmd_tx_vlan_set_pvid, + &cmd_csum_set, + &cmd_csum_show, + &cmd_csum_tunnel, + &cmd_csum_mac_swap, + &cmd_tso_set, + &cmd_tso_show, + &cmd_tunnel_tso_set, + &cmd_tunnel_tso_show, #ifdef RTE_LIB_GRO - (cmdline_parse_inst_t *)&cmd_gro_enable, - (cmdline_parse_inst_t *)&cmd_gro_flush, - (cmdline_parse_inst_t *)&cmd_gro_show, + &cmd_gro_enable, + &cmd_gro_flush, + &cmd_gro_show, #endif #ifdef RTE_LIB_GSO - (cmdline_parse_inst_t *)&cmd_gso_enable, - (cmdline_parse_inst_t *)&cmd_gso_size, - (cmdline_parse_inst_t *)&cmd_gso_show, + &cmd_gso_enable, + &cmd_gso_size, + &cmd_gso_show, #endif - (cmdline_parse_inst_t *)&cmd_link_flow_control_set, - (cmdline_parse_inst_t *)&cmd_link_flow_control_set_rx, - (cmdline_parse_inst_t *)&cmd_link_flow_control_set_tx, - (cmdline_parse_inst_t *)&cmd_link_flow_control_set_hw, - (cmdline_parse_inst_t *)&cmd_link_flow_control_set_lw, - (cmdline_parse_inst_t *)&cmd_link_flow_control_set_pt, - (cmdline_parse_inst_t *)&cmd_link_flow_control_set_xon, - (cmdline_parse_inst_t *)&cmd_link_flow_control_set_macfwd, - (cmdline_parse_inst_t *)&cmd_link_flow_control_set_autoneg, - (cmdline_parse_inst_t *)&cmd_link_flow_control_show, - (cmdline_parse_inst_t *)&cmd_priority_flow_control_set, - (cmdline_parse_inst_t *)&cmd_queue_priority_flow_control_set, - (cmdline_parse_inst_t *)&cmd_config_dcb, - (cmdline_parse_inst_t *)&cmd_read_rxd_txd, - (cmdline_parse_inst_t *)&cmd_stop, - (cmdline_parse_inst_t *)&cmd_mac_addr, - (cmdline_parse_inst_t *)&cmd_set_fwd_eth_peer, - (cmdline_parse_inst_t *)&cmd_set_qmap, - (cmdline_parse_inst_t *)&cmd_set_xstats_hide_zero, - (cmdline_parse_inst_t *)&cmd_set_record_core_cycles, - (cmdline_parse_inst_t *)&cmd_set_record_burst_stats, - (cmdline_parse_inst_t *)&cmd_operate_port, - (cmdline_parse_inst_t *)&cmd_operate_specific_port, - (cmdline_parse_inst_t *)&cmd_operate_attach_port, - (cmdline_parse_inst_t *)&cmd_operate_detach_port, - (cmdline_parse_inst_t *)&cmd_operate_detach_device, - (cmdline_parse_inst_t *)&cmd_set_port_setup_on, - (cmdline_parse_inst_t *)&cmd_config_speed_all, - (cmdline_parse_inst_t *)&cmd_config_speed_specific, - (cmdline_parse_inst_t *)&cmd_config_loopback_all, - (cmdline_parse_inst_t *)&cmd_config_loopback_specific, - (cmdline_parse_inst_t *)&cmd_config_rx_tx, - (cmdline_parse_inst_t *)&cmd_config_mtu, - (cmdline_parse_inst_t *)&cmd_config_max_pkt_len, - (cmdline_parse_inst_t *)&cmd_config_max_lro_pkt_size, - (cmdline_parse_inst_t *)&cmd_config_rx_mode_flag, - (cmdline_parse_inst_t *)&cmd_config_rss, - (cmdline_parse_inst_t *)&cmd_config_rxtx_ring_size, - (cmdline_parse_inst_t *)&cmd_config_rxtx_queue, - (cmdline_parse_inst_t *)&cmd_config_deferred_start_rxtx_queue, - (cmdline_parse_inst_t *)&cmd_setup_rxtx_queue, - (cmdline_parse_inst_t *)&cmd_config_rss_reta, - (cmdline_parse_inst_t *)&cmd_showport_reta, - (cmdline_parse_inst_t *)&cmd_showport_macs, - (cmdline_parse_inst_t *)&cmd_show_port_flow_transfer_proxy, - (cmdline_parse_inst_t *)&cmd_config_burst, - (cmdline_parse_inst_t *)&cmd_config_thresh, - (cmdline_parse_inst_t *)&cmd_config_threshold, - (cmdline_parse_inst_t *)&cmd_set_uc_hash_filter, - (cmdline_parse_inst_t *)&cmd_set_uc_all_hash_filter, - (cmdline_parse_inst_t *)&cmd_vf_mac_addr_filter, - (cmdline_parse_inst_t *)&cmd_queue_rate_limit, - (cmdline_parse_inst_t *)&cmd_tunnel_udp_config, - (cmdline_parse_inst_t *)&cmd_showport_rss_hash, - (cmdline_parse_inst_t *)&cmd_showport_rss_hash_key, - (cmdline_parse_inst_t *)&cmd_showport_rss_hash_algo, - (cmdline_parse_inst_t *)&cmd_config_rss_hash_key, - (cmdline_parse_inst_t *)&cmd_cleanup_txq_mbufs, - (cmdline_parse_inst_t *)&cmd_dump, - (cmdline_parse_inst_t *)&cmd_dump_one, - (cmdline_parse_inst_t *)&cmd_flow, - (cmdline_parse_inst_t *)&cmd_show_port_meter_cap, - (cmdline_parse_inst_t *)&cmd_add_port_meter_profile_srtcm, - (cmdline_parse_inst_t *)&cmd_add_port_meter_profile_trtcm, - (cmdline_parse_inst_t *)&cmd_add_port_meter_profile_trtcm_rfc4115, - (cmdline_parse_inst_t *)&cmd_del_port_meter_profile, - (cmdline_parse_inst_t *)&cmd_create_port_meter, - (cmdline_parse_inst_t *)&cmd_enable_port_meter, - (cmdline_parse_inst_t *)&cmd_disable_port_meter, - (cmdline_parse_inst_t *)&cmd_del_port_meter, - (cmdline_parse_inst_t *)&cmd_del_port_meter_policy, - (cmdline_parse_inst_t *)&cmd_set_port_meter_profile, - (cmdline_parse_inst_t *)&cmd_set_port_meter_dscp_table, - (cmdline_parse_inst_t *)&cmd_set_port_meter_vlan_table, - (cmdline_parse_inst_t *)&cmd_set_port_meter_in_proto, - (cmdline_parse_inst_t *)&cmd_get_port_meter_in_proto, - (cmdline_parse_inst_t *)&cmd_get_port_meter_in_proto_prio, - (cmdline_parse_inst_t *)&cmd_set_port_meter_stats_mask, - (cmdline_parse_inst_t *)&cmd_show_port_meter_stats, - (cmdline_parse_inst_t *)&cmd_mcast_addr, - (cmdline_parse_inst_t *)&cmd_mcast_addr_flush, - (cmdline_parse_inst_t *)&cmd_set_vf_vlan_anti_spoof, - (cmdline_parse_inst_t *)&cmd_set_vf_mac_anti_spoof, - (cmdline_parse_inst_t *)&cmd_set_vf_vlan_stripq, - (cmdline_parse_inst_t *)&cmd_set_vf_vlan_insert, - (cmdline_parse_inst_t *)&cmd_set_tx_loopback, - (cmdline_parse_inst_t *)&cmd_set_all_queues_drop_en, - (cmdline_parse_inst_t *)&cmd_set_vf_traffic, - (cmdline_parse_inst_t *)&cmd_set_vf_rxmode, - (cmdline_parse_inst_t *)&cmd_vf_rate_limit, - (cmdline_parse_inst_t *)&cmd_vf_rxvlan_filter, - (cmdline_parse_inst_t *)&cmd_set_vf_mac_addr, - (cmdline_parse_inst_t *)&cmd_set_vxlan, - (cmdline_parse_inst_t *)&cmd_set_vxlan_tos_ttl, - (cmdline_parse_inst_t *)&cmd_set_vxlan_with_vlan, - (cmdline_parse_inst_t *)&cmd_set_nvgre, - (cmdline_parse_inst_t *)&cmd_set_nvgre_with_vlan, - (cmdline_parse_inst_t *)&cmd_set_l2_encap, - (cmdline_parse_inst_t *)&cmd_set_l2_encap_with_vlan, - (cmdline_parse_inst_t *)&cmd_set_l2_decap, - (cmdline_parse_inst_t *)&cmd_set_l2_decap_with_vlan, - (cmdline_parse_inst_t *)&cmd_set_mplsogre_encap, - (cmdline_parse_inst_t *)&cmd_set_mplsogre_encap_with_vlan, - (cmdline_parse_inst_t *)&cmd_set_mplsogre_decap, - (cmdline_parse_inst_t *)&cmd_set_mplsogre_decap_with_vlan, - (cmdline_parse_inst_t *)&cmd_set_mplsoudp_encap, - (cmdline_parse_inst_t *)&cmd_set_mplsoudp_encap_with_vlan, - (cmdline_parse_inst_t *)&cmd_set_mplsoudp_decap, - (cmdline_parse_inst_t *)&cmd_set_mplsoudp_decap_with_vlan, - (cmdline_parse_inst_t *)&cmd_set_conntrack_common, - (cmdline_parse_inst_t *)&cmd_set_conntrack_dir, - (cmdline_parse_inst_t *)&cmd_show_vf_stats, - (cmdline_parse_inst_t *)&cmd_clear_vf_stats, - (cmdline_parse_inst_t *)&cmd_show_port_supported_ptypes, - (cmdline_parse_inst_t *)&cmd_set_port_ptypes, - (cmdline_parse_inst_t *)&cmd_show_port_tm_cap, - (cmdline_parse_inst_t *)&cmd_show_port_tm_level_cap, - (cmdline_parse_inst_t *)&cmd_show_port_tm_node_cap, - (cmdline_parse_inst_t *)&cmd_show_port_tm_node_type, - (cmdline_parse_inst_t *)&cmd_show_port_tm_node_stats, - (cmdline_parse_inst_t *)&cmd_add_port_tm_node_shaper_profile, - (cmdline_parse_inst_t *)&cmd_del_port_tm_node_shaper_profile, - (cmdline_parse_inst_t *)&cmd_add_port_tm_node_shared_shaper, - (cmdline_parse_inst_t *)&cmd_del_port_tm_node_shared_shaper, - (cmdline_parse_inst_t *)&cmd_add_port_tm_node_wred_profile, - (cmdline_parse_inst_t *)&cmd_del_port_tm_node_wred_profile, - (cmdline_parse_inst_t *)&cmd_set_port_tm_node_shaper_profile, - (cmdline_parse_inst_t *)&cmd_add_port_tm_nonleaf_node, - (cmdline_parse_inst_t *)&cmd_add_port_tm_nonleaf_node_pmode, - (cmdline_parse_inst_t *)&cmd_add_port_tm_leaf_node, - (cmdline_parse_inst_t *)&cmd_del_port_tm_node, - (cmdline_parse_inst_t *)&cmd_set_port_tm_node_parent, - (cmdline_parse_inst_t *)&cmd_suspend_port_tm_node, - (cmdline_parse_inst_t *)&cmd_resume_port_tm_node, - (cmdline_parse_inst_t *)&cmd_port_tm_hierarchy_commit, - (cmdline_parse_inst_t *)&cmd_port_tm_mark_ip_ecn, - (cmdline_parse_inst_t *)&cmd_port_tm_mark_ip_dscp, - (cmdline_parse_inst_t *)&cmd_port_tm_mark_vlan_dei, - (cmdline_parse_inst_t *)&cmd_cfg_tunnel_udp_port, - (cmdline_parse_inst_t *)&cmd_rx_offload_get_capa, - (cmdline_parse_inst_t *)&cmd_rx_offload_get_configuration, - (cmdline_parse_inst_t *)&cmd_config_per_port_rx_offload, - (cmdline_parse_inst_t *)&cmd_config_all_port_rx_offload, - (cmdline_parse_inst_t *)&cmd_config_per_queue_rx_offload, - (cmdline_parse_inst_t *)&cmd_tx_offload_get_capa, - (cmdline_parse_inst_t *)&cmd_tx_offload_get_configuration, - (cmdline_parse_inst_t *)&cmd_config_per_port_tx_offload, - (cmdline_parse_inst_t *)&cmd_config_all_port_tx_offload, - (cmdline_parse_inst_t *)&cmd_config_per_queue_tx_offload, + &cmd_link_flow_control_set, + &cmd_link_flow_control_set_rx, + &cmd_link_flow_control_set_tx, + &cmd_link_flow_control_set_hw, + &cmd_link_flow_control_set_lw, + &cmd_link_flow_control_set_pt, + &cmd_link_flow_control_set_xon, + &cmd_link_flow_control_set_macfwd, + &cmd_link_flow_control_set_autoneg, + &cmd_link_flow_control_show, + &cmd_priority_flow_control_set, + &cmd_queue_priority_flow_control_set, + &cmd_config_dcb, + &cmd_read_rxd_txd, + &cmd_stop, + &cmd_mac_addr, + &cmd_set_fwd_eth_peer, + &cmd_set_qmap, + &cmd_set_xstats_hide_zero, + &cmd_set_record_core_cycles, + &cmd_set_record_burst_stats, + &cmd_operate_port, + &cmd_operate_specific_port, + &cmd_operate_attach_port, + &cmd_operate_detach_port, + &cmd_operate_detach_device, + &cmd_set_port_setup_on, + &cmd_config_speed_all, + &cmd_config_speed_specific, + &cmd_config_loopback_all, + &cmd_config_loopback_specific, + &cmd_config_rx_tx, + &cmd_config_mtu, + &cmd_config_max_pkt_len, + &cmd_config_max_lro_pkt_size, + &cmd_config_rx_mode_flag, + &cmd_config_rss, + &cmd_config_rxtx_ring_size, + &cmd_config_rxtx_queue, + &cmd_config_deferred_start_rxtx_queue, + &cmd_setup_rxtx_queue, + &cmd_config_rss_reta, + &cmd_showport_reta, + &cmd_showport_macs, + &cmd_show_port_flow_transfer_proxy, + &cmd_config_burst, + &cmd_config_thresh, + &cmd_config_threshold, + &cmd_set_uc_hash_filter, + &cmd_set_uc_all_hash_filter, + &cmd_vf_mac_addr_filter, + &cmd_queue_rate_limit, + &cmd_tunnel_udp_config, + &cmd_showport_rss_hash, + &cmd_showport_rss_hash_key, + &cmd_showport_rss_hash_algo, + &cmd_config_rss_hash_key, + &cmd_cleanup_txq_mbufs, + &cmd_dump, + &cmd_dump_one, + &cmd_flow, + &cmd_show_port_meter_cap, + &cmd_add_port_meter_profile_srtcm, + &cmd_add_port_meter_profile_trtcm, + &cmd_add_port_meter_profile_trtcm_rfc4115, + &cmd_del_port_meter_profile, + &cmd_create_port_meter, + &cmd_enable_port_meter, + &cmd_disable_port_meter, + &cmd_del_port_meter, + &cmd_del_port_meter_policy, + &cmd_set_port_meter_profile, + &cmd_set_port_meter_dscp_table, + &cmd_set_port_meter_vlan_table, + &cmd_set_port_meter_in_proto, + &cmd_get_port_meter_in_proto, + &cmd_get_port_meter_in_proto_prio, + &cmd_set_port_meter_stats_mask, + &cmd_show_port_meter_stats, + &cmd_mcast_addr, + &cmd_mcast_addr_flush, + &cmd_set_vf_vlan_anti_spoof, + &cmd_set_vf_mac_anti_spoof, + &cmd_set_vf_vlan_stripq, + &cmd_set_vf_vlan_insert, + &cmd_set_tx_loopback, + &cmd_set_all_queues_drop_en, + &cmd_set_vf_traffic, + &cmd_set_vf_rxmode, + &cmd_vf_rate_limit, + &cmd_vf_rxvlan_filter, + &cmd_set_vf_mac_addr, + &cmd_set_vxlan, + &cmd_set_vxlan_tos_ttl, + &cmd_set_vxlan_with_vlan, + &cmd_set_nvgre, + &cmd_set_nvgre_with_vlan, + &cmd_set_l2_encap, + &cmd_set_l2_encap_with_vlan, + &cmd_set_l2_decap, + &cmd_set_l2_decap_with_vlan, + &cmd_set_mplsogre_encap, + &cmd_set_mplsogre_encap_with_vlan, + &cmd_set_mplsogre_decap, + &cmd_set_mplsogre_decap_with_vlan, + &cmd_set_mplsoudp_encap, + &cmd_set_mplsoudp_encap_with_vlan, + &cmd_set_mplsoudp_decap, + &cmd_set_mplsoudp_decap_with_vlan, + &cmd_set_conntrack_common, + &cmd_set_conntrack_dir, + &cmd_show_vf_stats, + &cmd_clear_vf_stats, + &cmd_show_port_supported_ptypes, + &cmd_set_port_ptypes, + &cmd_show_port_tm_cap, + &cmd_show_port_tm_level_cap, + &cmd_show_port_tm_node_cap, + &cmd_show_port_tm_node_type, + &cmd_show_port_tm_node_stats, + &cmd_add_port_tm_node_shaper_profile, + &cmd_del_port_tm_node_shaper_profile, + &cmd_add_port_tm_node_shared_shaper, + &cmd_del_port_tm_node_shared_shaper, + &cmd_add_port_tm_node_wred_profile, + &cmd_del_port_tm_node_wred_profile, + &cmd_set_port_tm_node_shaper_profile, + &cmd_add_port_tm_nonleaf_node, + &cmd_add_port_tm_nonleaf_node_pmode, + &cmd_add_port_tm_leaf_node, + &cmd_del_port_tm_node, + &cmd_set_port_tm_node_parent, + &cmd_suspend_port_tm_node, + &cmd_resume_port_tm_node, + &cmd_port_tm_hierarchy_commit, + &cmd_port_tm_mark_ip_ecn, + &cmd_port_tm_mark_ip_dscp, + &cmd_port_tm_mark_vlan_dei, + &cmd_cfg_tunnel_udp_port, + &cmd_rx_offload_get_capa, + &cmd_rx_offload_get_configuration, + &cmd_config_per_port_rx_offload, + &cmd_config_all_port_rx_offload, + &cmd_config_per_queue_rx_offload, + &cmd_tx_offload_get_capa, + &cmd_tx_offload_get_configuration, + &cmd_config_per_port_tx_offload, + &cmd_config_all_port_tx_offload, + &cmd_config_per_queue_tx_offload, #ifdef RTE_LIB_BPF - (cmdline_parse_inst_t *)&cmd_operate_bpf_ld_parse, - (cmdline_parse_inst_t *)&cmd_operate_bpf_unld_parse, + &cmd_operate_bpf_ld_parse, + &cmd_operate_bpf_unld_parse, #endif - (cmdline_parse_inst_t *)&cmd_config_tx_metadata_specific, - (cmdline_parse_inst_t *)&cmd_show_tx_metadata, - (cmdline_parse_inst_t *)&cmd_show_rx_tx_desc_status, - (cmdline_parse_inst_t *)&cmd_show_rx_queue_desc_used_count, - (cmdline_parse_inst_t *)&cmd_set_raw, - (cmdline_parse_inst_t *)&cmd_show_set_raw, - (cmdline_parse_inst_t *)&cmd_show_set_raw_all, - (cmdline_parse_inst_t *)&cmd_config_tx_dynf_specific, - (cmdline_parse_inst_t *)&cmd_show_fec_mode, - (cmdline_parse_inst_t *)&cmd_set_fec_mode, - (cmdline_parse_inst_t *)&cmd_set_rxq_avail_thresh, - (cmdline_parse_inst_t *)&cmd_show_capability, - (cmdline_parse_inst_t *)&cmd_set_flex_is_pattern, - (cmdline_parse_inst_t *)&cmd_set_flex_spec_pattern, - (cmdline_parse_inst_t *)&cmd_show_port_cman_capa, - (cmdline_parse_inst_t *)&cmd_show_port_cman_config, - (cmdline_parse_inst_t *)&cmd_set_port_cman_config, - (cmdline_parse_inst_t *)&cmd_config_tx_affinity_map, + &cmd_config_tx_metadata_specific, + &cmd_show_tx_metadata, + &cmd_show_rx_tx_desc_status, + &cmd_show_rx_queue_desc_used_count, + &cmd_set_raw, + &cmd_show_set_raw, + &cmd_show_set_raw_all, + &cmd_config_tx_dynf_specific, + &cmd_show_fec_mode, + &cmd_set_fec_mode, + &cmd_set_rxq_avail_thresh, + &cmd_show_capability, + &cmd_set_flex_is_pattern, + &cmd_set_flex_spec_pattern, + &cmd_show_port_cman_capa, + &cmd_show_port_cman_config, + &cmd_set_port_cman_config, + &cmd_config_tx_affinity_map, NULL, }; -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-11 14:23:08.700532467 +0800 +++ 0076-app-testpmd-remove-unnecessary-cast.patch 2024-11-11 14:23:05.192192838 +0800 @@ -1 +1 @@ -From 0a3901aa624a690faa49ca081c468320d4edcb7a Mon Sep 17 00:00:00 2001 +From a32bb4a902153541e12f7aa349260344705e6812 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 0a3901aa624a690faa49ca081c468320d4edcb7a ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -15,2 +17,2 @@ - app/test-pmd/cmdline.c | 458 ++++++++++++++++++++--------------------- - 1 file changed, 229 insertions(+), 229 deletions(-) + app/test-pmd/cmdline.c | 456 ++++++++++++++++++++--------------------- + 1 file changed, 228 insertions(+), 228 deletions(-) @@ -19 +21 @@ -index b7759e38a8..358319c20a 100644 +index d9304e4a32..bf6794ee1d 100644 @@ -22 +24 @@ -@@ -13146,241 +13146,241 @@ static cmdline_parse_inst_t cmd_config_tx_affinity_map = { +@@ -13047,240 +13047,240 @@ static cmdline_parse_inst_t cmd_config_tx_affinity_map = { @@ -205 +206,0 @@ -- (cmdline_parse_inst_t *)&cmd_config_rss_hash_algo, @@ -355 +355,0 @@ -+ &cmd_config_rss_hash_algo, @@ -457 +457 @@ -- (cmdline_parse_inst_t *)&cmd_show_rx_tx_queue_desc_used_count, +- (cmdline_parse_inst_t *)&cmd_show_rx_queue_desc_used_count, @@ -475 +475 @@ -+ &cmd_show_rx_tx_queue_desc_used_count, ++ &cmd_show_rx_queue_desc_used_count,