]> git.droids-corp.org - dpdk.git/commitdiff
net: register aliases for renamed vdev drivers
authorJan Blunck <jblunck@infradead.org>
Mon, 24 Oct 2016 16:22:22 +0000 (12:22 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 25 Oct 2016 16:49:18 +0000 (18:49 +0200)
This registers the legacy names of the driver being renamed in
commit 2f45703c17ac ("drivers: make driver names consistent").

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/af_packet/rte_eth_af_packet.c
drivers/net/bonding/rte_eth_bond_pmd.c
drivers/net/mpipe/mpipe_tilegx.c
drivers/net/null/rte_eth_null.c
drivers/net/pcap/rte_eth_pcap.c
drivers/net/ring/rte_eth_ring.c
drivers/net/vhost/rte_eth_vhost.c
drivers/net/virtio/virtio_user_ethdev.c
drivers/net/xenvirt/rte_eth_xenvirt.c

index 201c1be789a5dd59928173cc34e06ef9e8eb8ebe..ff450685fe4d2cc92a0162e6fd76859b006641c8 100644 (file)
@@ -895,6 +895,7 @@ 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=<string> "
        "qpairs=<int> "
index 9e38ec9969f15291e5d104c3388076095e9fdce6..9df245e91ac597723188eaef93b981fe386f75ec 100644 (file)
@@ -2560,6 +2560,7 @@ static struct rte_vdev_driver bond_drv = {
 };
 
 RTE_PMD_REGISTER_VDEV(net_bonding, bond_drv);
+RTE_PMD_REGISTER_ALIAS(net_bonding, eth_bond);
 
 RTE_PMD_REGISTER_PARAM_STRING(net_bonding,
        "slave=<ifc> "
index adf299bee0d8f4afc6a43b9cecd916591df2f586..fbbbb00254d6ee30a3dae06c8c8e3895eb3717f7 100644 (file)
@@ -1632,7 +1632,9 @@ static struct rte_vdev_driver pmd_mpipe_gbe_drv = {
 };
 
 RTE_PMD_REGISTER_VDEV(net_mpipe_xgbe, pmd_mpipe_xgbe_drv);
+RTE_PMD_REGISTER_ALIAS(net_mpipe_xgbe, xgbe);
 RTE_PMD_REGISTER_VDEV(net_mpipe_gbe, pmd_mpipe_gbe_drv);
+RTE_PMD_REGISTER_ALIAS(net_mpipe_gbe, gbe);
 
 static void __attribute__((constructor, used))
 mpipe_init_contexts(void)
index 0b7cc3756ad69f54b5c767489d1e2f09be38fbbb..836d982ac473289c5cebe9f5293db78e03abf9dd 100644 (file)
@@ -692,6 +692,7 @@ 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=<int> "
        "copy=<int>");
index 0c4711d86ecd55cb0f4d6f500c503ac9e98b33f0..0162f44619b8fd5b482b9a53b6ca6cf4efdc8ca8 100644 (file)
@@ -1065,6 +1065,7 @@ 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 "=<string> "
        ETH_PCAP_TX_PCAP_ARG "=<string> "
index ee1fb76d5e9d03378500b89de9c8380696d9dc7c..6d2a8c18f2cf20e5a6186a1caa1c646b7214da18 100644 (file)
@@ -629,5 +629,6 @@ 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)");
index 6f58476a54ea96d34254074416ca10ec3b30e8f9..766d4ef13e0b6a61b4b71a0f62250feace16ef97 100644 (file)
@@ -1244,6 +1244,7 @@ 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=<ifc> "
        "queues=<int>");
index bfdc3d0037168bbe9a88f1e2e16afa56d7277935..406beeace64310f4a042753cf158b556c1270a1d 100644 (file)
@@ -479,6 +479,7 @@ 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=<path> "
        "mac=<mac addr> "
index 5a897b9087b9cb8f33b24ff5d7f2475544f1bab8..c08a0568f2366fef5955015890e51eb072677bb5 100644 (file)
@@ -765,5 +765,6 @@ static struct rte_vdev_driver pmd_xenvirt_drv = {
 };
 
 RTE_PMD_REGISTER_VDEV(net_xenvirt, pmd_xenvirt_drv);
+RTE_PMD_REGISTER_ALIAS(net_xenvirt, eth_xenvirt);
 RTE_PMD_REGISTER_PARAM_STRING(net_xenvirt,
        "mac=<mac addr>");