drivers: revert vdev driver names to original

In order to avoid API breakage, the driver names of the virtual devices
have been renamed to their original name, before the modification
of the PMD_REGISTER_DRIVER macro, which sets now the driver names.

Fixes: cb6696d220 ("drivers: update registration macro usage")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
This commit is contained in:
Pablo de Lara 2016-07-09 02:06:10 +01:00 committed by Thomas Monjalon
parent 139bdc1db6
commit 1586ff4cef
4 changed files with 7 additions and 7 deletions

View File

@ -2515,9 +2515,9 @@ static struct rte_driver bond_drv = {
.uninit = bond_uninit,
};
PMD_REGISTER_DRIVER(bond_drv, bonding);
PMD_REGISTER_DRIVER(bond_drv, eth_bond);
DRIVER_REGISTER_PARAM_STRING(bonding, "slave=<ifc> primary=<ifc> mode=[0-4] "
DRIVER_REGISTER_PARAM_STRING(eth_bond, "slave=<ifc> primary=<ifc> mode=[0-4] "
"xmit_policy=[l2 | l23 | l34] socket_id=<int> mac=<mac addr> "
"lsc_poll_period_ms=<int> up_delay=<int> down_delay=<int>");

View File

@ -1635,8 +1635,8 @@ static struct rte_driver pmd_mpipe_gbe_drv = {
.init = rte_pmd_mpipe_devinit,
};
PMD_REGISTER_DRIVER(pmd_mpipe_xgbe_drv, mpipe_xgbe);
PMD_REGISTER_DRIVER(pmd_mpipe_gbe_drv, mpipe_gbe);
PMD_REGISTER_DRIVER(pmd_mpipe_xgbe_drv, xgbe);
PMD_REGISTER_DRIVER(pmd_mpipe_gbe_drv, gbe);
static void __attribute__((constructor, used))
mpipe_init_contexts(void)

View File

@ -1090,6 +1090,6 @@ static struct rte_driver pmd_pcap_drv = {
.uninit = rte_pmd_pcap_devuninit,
};
PMD_REGISTER_DRIVER(pmd_pcap_drv, pcap);
DRIVER_REGISTER_PARAM_STRING(pcap, "rx_pcap=<string> tx_pcap=<string> "
PMD_REGISTER_DRIVER(pmd_pcap_drv, eth_pcap);
DRIVER_REGISTER_PARAM_STRING(eth_pcap, "rx_pcap=<string> tx_pcap=<string> "
"rx_iface=<ifc> tx_iface=<ifc> iface=<ifc>");

View File

@ -766,4 +766,4 @@ static struct rte_driver pmd_xenvirt_drv = {
.uninit = rte_pmd_xenvirt_devuninit,
};
PMD_REGISTER_DRIVER(pmd_xenvirt_drv, xenvirt);
PMD_REGISTER_DRIVER(pmd_xenvirt_drv, eth_xenvirt);