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 0F07BA00C3; Wed, 21 Sep 2022 15:35:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 01AE84067C; Wed, 21 Sep 2022 15:35:10 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by mails.dpdk.org (Postfix) with ESMTP id 388474014F for ; Wed, 21 Sep 2022 15:35:08 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VmoecTPEj8fdTUjQ42LK8KcvCA58lc1Qbbw1JyO30Tsm9NSOKk9wszmJy+GhgMZT/Kb9jppwz0k7dP1Sa5PFPujVtzRP/kzGMqd4eU54NQZdyD9j61TmVEZmZlxVJif5ozlltbn38xTGVAzKHfbIR4AE3O7KGjw1xjoNrEKBaNNqIpsKXzteTqu55msB8EeHwGxKBGHeJv/hhXZTh2TOhFyZDXBpM8U/UEDBxJi+dVrSUJ9z3NMf/6X2qo2DiIjVdCnJdEudL5cxAFa46p18kVHq567l1VyXsXSn6sU7h8vDk0lwI8h58VWO/woVNw+GbOkrLMlwdLvVgQ5orqLhkw== 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=rtedcq15TcSQrWx8W3aTYPTUzLHBYw5mizUjGowuyg8=; b=Vq3jxhyh78w6/KOh3rQ8Bmv3XF+Txycm96ZdSmxxS02aPyPIhpWaaPqvw61SSj7NXfI8o809Pb9SqN9BJcGS/2Ksy+PbRnB/5iD2r3QkqnGkIl312bI9zxKt7h4Yhg3VSOw4s0D09rPABhOLsZxRbGV/ZuORf14LBiVLrSTFdNYruV5oWResRPN1of5b52KRMIMVcRRFHIcQiZdSkUmRvbfIxAy6MHH3yTAQXbR7s4GZ6ziMYRE8xJsoUquEK/uHUqhX9/e2ZTvGzeNIvzNZ0DqqZEidCprhB0uwf3PUCbEFFFXXoXvqSio0UsVWwrBv+QBB05X1mtl6xkgW0P93fA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=tuxdriver.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rtedcq15TcSQrWx8W3aTYPTUzLHBYw5mizUjGowuyg8=; b=lzBF7cA1Kg4kwa9+58n8crKZ3e/tXNhL9Q0FphHmbOMyM61G7kwueiTozrPcLoLQUq/RFIEg8SFm7JjWs4ncu7KGd32JNbkBSmOV7pcTXIx0Jt+2XC2L3n0DMuCEBOKXIZOealIXGXEHR6WzQw6GJdgXGhxLSONSSurEepuMrWc= Received: from MW4P222CA0001.NAMP222.PROD.OUTLOOK.COM (2603:10b6:303:114::6) by IA1PR12MB6236.namprd12.prod.outlook.com (2603:10b6:208:3e4::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.16; Wed, 21 Sep 2022 13:35:06 +0000 Received: from CO1NAM11FT007.eop-nam11.prod.protection.outlook.com (2603:10b6:303:114:cafe::61) by MW4P222CA0001.outlook.office365.com (2603:10b6:303:114::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.17 via Frontend Transport; Wed, 21 Sep 2022 13:35:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1NAM11FT007.mail.protection.outlook.com (10.13.174.131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5654.14 via Frontend Transport; Wed, 21 Sep 2022 13:35:05 +0000 Received: from telcodpdk.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Wed, 21 Sep 2022 08:35:03 -0500 From: Ferruh Yigit To: "John W. Linville" , Chas Williams , "Min Hu (Connor)" , Liron Himi , Tetsuya Mukawa , Harman Kalra , Bruce Richardson , Matan Azrad , Maxime Coquelin , Chenbo Xia CC: , Andrew Rybchenko , Thomas Monjalon , Stephen Hemminger Subject: [PATCH] drivers/net: remove alias for virtual devices Date: Wed, 21 Sep 2022 14:34:51 +0100 Message-ID: <20220921133451.4164506-1-ferruh.yigit@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT007:EE_|IA1PR12MB6236:EE_ X-MS-Office365-Filtering-Correlation-Id: badef956-9042-4a2e-47e6-08da9bd617e3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Oei34xuNOC6HzlSgk9o/wtXUX3gwYSKD1iY4BFX/YvY9q/jalICxeaILGr7I5fm14TaUHRXq9+zI7K1UqKMD33igwhlsKBLTM8MWRd3YGzlOhf0Jc/dSY7epdpZ51ZfdXSeidx1eok2fnjFUP+9MPZRStgQGNxOMO609e2eAyFbE1EY2HFzENW0c1qGR5yEcO3C1K+Fi8kl0hZwhlL82Yx7qoe7deAG8eWiVRi2J5IshDgRv6+WkLQ7RyiMDRTIEWf5m8iJWt8YY1c91+lwmS53fuuwc9tkZVqwCJKYJmrH1cCDYdm5Tu8uELuIevFaThY3MvBcNe6EfdrG8NdDX5HF8xnNkX8YZ9ICs0ZjQbALKaXQy4AG+ISiFMP/D5wkqCqodhHJalBgeJr1gsBKE3NkBqqg75AHZlrp/MA9tcDp1g1PPUOYI3SB7F3IepXMwAh1AQBB5Xzb8TzTcq5iFPWuzGrWiV/R2+ZzovUX7UI4LXTO0g5UfPSSVberdYQTuqpjSw8s9G5S7e+jpkxRBUg8D5t8l2dOL50p09Cr432gxeinng7L66yep3L+Jt5Jm+Djy9da9s/wKE5Q91STT0xQkcshJQz5SOnBUWiUGy1hd5SGkF/0CYPiAMuHhiehwdEFRJ76fGK10nMRcIsAHjaMfP6ObY3HLNkIfJp2vwhqO8TZHkJPlRnloPueTveMIujy+UoQRJcrgGU2mu3O6uq+htj7aIm6CxoF+quZUCLBlVN6TXhQA6RKZMIc/GWWNrYFx5dyFZ8wOiXQUA4MoR5Gt/ZIyd1Xjszz5Wg/VNMDx5kUIDY5ab5Bkot4dZoIr X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(346002)(376002)(39860400002)(396003)(136003)(451199015)(40470700004)(36840700001)(46966006)(186003)(2616005)(1076003)(7416002)(2906002)(44832011)(4326008)(8676002)(70586007)(70206006)(41300700001)(6666004)(26005)(8936002)(36756003)(5660300002)(316002)(7696005)(40480700001)(921005)(36860700001)(82740400003)(81166007)(82310400005)(356005)(86362001)(83380400001)(16526019)(336012)(40460700003)(47076005)(426003)(478600001)(110136005)(54906003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2022 13:35:05.0549 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: badef956-9042-4a2e-47e6-08da9bd617e3 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT007.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6236 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Virtual devices are probed/matched based on name, and this name is user facing value, since device name is provided by user as eal '--vdev' parameter, like: `dpdk-testpmd --vdev net_null0`. The current name format is 'net_', but previously it was 'eth_', and an alias to legacy naming format was introduced for backward compatibility. Commit 9fa80cb26bd0 ("net: register aliases for renamed vdev drivers") Since new device name format is around for 6 years, removing alias for legacy naming. Signed-off-by: Ferruh Yigit --- Alias for device name is used by other device abstraction layers too, ('crypto', 'baseband', 'raw'), since I am not aware of their maturity level, leaving them out in this patch. --- drivers/net/af_packet/rte_eth_af_packet.c | 1 - drivers/net/bonding/rte_eth_bond_pmd.c | 1 - drivers/net/mvpp2/mrvl_ethdev.c | 1 - drivers/net/null/rte_eth_null.c | 1 - drivers/net/octeontx/octeontx_ethdev.c | 1 - drivers/net/pcap/pcap_ethdev.c | 1 - drivers/net/ring/rte_eth_ring.c | 1 - drivers/net/tap/rte_eth_tap.c | 1 - drivers/net/vdev_netvsc/vdev_netvsc.c | 1 - drivers/net/vhost/rte_eth_vhost.c | 1 - drivers/net/virtio/virtio_user_ethdev.c | 1 - 11 files changed, 11 deletions(-) diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c index 1396f32c3dcc..46baf108aa9b 100644 --- a/drivers/net/af_packet/rte_eth_af_packet.c +++ b/drivers/net/af_packet/rte_eth_af_packet.c @@ -1128,7 +1128,6 @@ static struct rte_vdev_driver pmd_af_packet_drv = { }; RTE_PMD_REGISTER_VDEV(net_af_packet, pmd_af_packet_drv); -RTE_PMD_REGISTER_ALIAS(net_af_packet, eth_af_packet); RTE_PMD_REGISTER_PARAM_STRING(net_af_packet, "iface= " "qpairs= " diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index 3191158ca785..ad54e11f80f4 100644 --- a/drivers/net/bonding/rte_eth_bond_pmd.c +++ b/drivers/net/bonding/rte_eth_bond_pmd.c @@ -3912,7 +3912,6 @@ struct rte_vdev_driver pmd_bond_drv = { }; RTE_PMD_REGISTER_VDEV(net_bonding, pmd_bond_drv); -RTE_PMD_REGISTER_ALIAS(net_bonding, eth_bond); RTE_PMD_REGISTER_PARAM_STRING(net_bonding, "slave= " diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethdev.c index 735efb6cfc06..590e5e89220a 100644 --- a/drivers/net/mvpp2/mrvl_ethdev.c +++ b/drivers/net/mvpp2/mrvl_ethdev.c @@ -3314,5 +3314,4 @@ static struct rte_vdev_driver pmd_mrvl_drv = { }; RTE_PMD_REGISTER_VDEV(net_mvpp2, pmd_mrvl_drv); -RTE_PMD_REGISTER_ALIAS(net_mvpp2, eth_mvpp2); RTE_LOG_REGISTER_DEFAULT(mrvl_logtype, NOTICE); diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index bb89c1abc4a2..2536d4b8f278 100644 --- a/drivers/net/null/rte_eth_null.c +++ b/drivers/net/null/rte_eth_null.c @@ -746,7 +746,6 @@ static struct rte_vdev_driver pmd_null_drv = { }; RTE_PMD_REGISTER_VDEV(net_null, pmd_null_drv); -RTE_PMD_REGISTER_ALIAS(net_null, eth_null); RTE_PMD_REGISTER_PARAM_STRING(net_null, "size= " "copy= " diff --git a/drivers/net/octeontx/octeontx_ethdev.c b/drivers/net/octeontx/octeontx_ethdev.c index 290e562126a4..743ac408cba7 100644 --- a/drivers/net/octeontx/octeontx_ethdev.c +++ b/drivers/net/octeontx/octeontx_ethdev.c @@ -1885,5 +1885,4 @@ static struct rte_vdev_driver octeontx_pmd_drv = { }; RTE_PMD_REGISTER_VDEV(OCTEONTX_PMD, octeontx_pmd_drv); -RTE_PMD_REGISTER_ALIAS(OCTEONTX_PMD, eth_octeontx); RTE_PMD_REGISTER_PARAM_STRING(OCTEONTX_PMD, "nr_port= "); diff --git a/drivers/net/pcap/pcap_ethdev.c b/drivers/net/pcap/pcap_ethdev.c index ec29fd6bc53c..8cc49e14ca8d 100644 --- a/drivers/net/pcap/pcap_ethdev.c +++ b/drivers/net/pcap/pcap_ethdev.c @@ -1643,7 +1643,6 @@ static struct rte_vdev_driver pmd_pcap_drv = { }; RTE_PMD_REGISTER_VDEV(net_pcap, pmd_pcap_drv); -RTE_PMD_REGISTER_ALIAS(net_pcap, eth_pcap); RTE_PMD_REGISTER_PARAM_STRING(net_pcap, ETH_PCAP_RX_PCAP_ARG "= " ETH_PCAP_TX_PCAP_ARG "= " diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index cfb81da5fe16..8ccca9db1935 100644 --- a/drivers/net/ring/rte_eth_ring.c +++ b/drivers/net/ring/rte_eth_ring.c @@ -772,6 +772,5 @@ static struct rte_vdev_driver pmd_ring_drv = { }; RTE_PMD_REGISTER_VDEV(net_ring, pmd_ring_drv); -RTE_PMD_REGISTER_ALIAS(net_ring, eth_ring); RTE_PMD_REGISTER_PARAM_STRING(net_ring, ETH_RING_NUMA_NODE_ACTION_ARG "=name:node:action(ATTACH|CREATE)"); diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index 9e1032fe7269..b05ff227d381 100644 --- a/drivers/net/tap/rte_eth_tap.c +++ b/drivers/net/tap/rte_eth_tap.c @@ -2638,7 +2638,6 @@ static struct rte_vdev_driver pmd_tap_drv = { RTE_PMD_REGISTER_VDEV(net_tap, pmd_tap_drv); RTE_PMD_REGISTER_VDEV(net_tun, pmd_tun_drv); -RTE_PMD_REGISTER_ALIAS(net_tap, eth_tap); RTE_PMD_REGISTER_PARAM_STRING(net_tun, ETH_TAP_IFACE_ARG "= "); RTE_PMD_REGISTER_PARAM_STRING(net_tap, diff --git a/drivers/net/vdev_netvsc/vdev_netvsc.c b/drivers/net/vdev_netvsc/vdev_netvsc.c index 25871951685c..89ac58e153c0 100644 --- a/drivers/net/vdev_netvsc/vdev_netvsc.c +++ b/drivers/net/vdev_netvsc/vdev_netvsc.c @@ -764,7 +764,6 @@ static struct rte_vdev_driver vdev_netvsc_vdev = { }; RTE_PMD_REGISTER_VDEV(VDEV_NETVSC_DRIVER, vdev_netvsc_vdev); -RTE_PMD_REGISTER_ALIAS(VDEV_NETVSC_DRIVER, eth_vdev_netvsc); RTE_PMD_REGISTER_PARAM_STRING(net_vdev_netvsc, VDEV_NETVSC_ARG_IFACE "= " VDEV_NETVSC_ARG_MAC "= " diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index 7e512d94bf99..8eb937f91785 100644 --- a/drivers/net/vhost/rte_eth_vhost.c +++ b/drivers/net/vhost/rte_eth_vhost.c @@ -1777,7 +1777,6 @@ static struct rte_vdev_driver pmd_vhost_drv = { }; RTE_PMD_REGISTER_VDEV(net_vhost, pmd_vhost_drv); -RTE_PMD_REGISTER_ALIAS(net_vhost, eth_vhost); RTE_PMD_REGISTER_PARAM_STRING(net_vhost, "iface= " "queues= " diff --git a/drivers/net/virtio/virtio_user_ethdev.c b/drivers/net/virtio/virtio_user_ethdev.c index a7d7063c2a88..8f93ed01e45a 100644 --- a/drivers/net/virtio/virtio_user_ethdev.c +++ b/drivers/net/virtio/virtio_user_ethdev.c @@ -775,7 +775,6 @@ static struct rte_vdev_driver virtio_user_driver = { }; RTE_PMD_REGISTER_VDEV(net_virtio_user, virtio_user_driver); -RTE_PMD_REGISTER_ALIAS(net_virtio_user, virtio_user); RTE_PMD_REGISTER_PARAM_STRING(net_virtio_user, "path= " "mac= " -- 2.25.1