eal: remove unused PMD types
- All devices register themselfs by calling a kind of DRIVER_REGISTER_XXX. The PMD_REGISTER_DRIVER is not used anymore. - PMD_VDEV type is also not being used - can be removed from all VDEVs. Signed-off-by: Jan Viktorin <viktorin@rehivetech.com> Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com> Acked-by: David Marchand <david.marchand@6wind.com>
This commit is contained in:
parent
fe363dd425
commit
2695c6df69
@ -515,9 +515,6 @@ aesni_gcm_uninit(const char *name)
|
||||
}
|
||||
|
||||
static struct rte_vdev_driver aesni_gcm_pmd_drv = {
|
||||
.driver = {
|
||||
.type = PMD_VDEV,
|
||||
},
|
||||
.init = aesni_gcm_init,
|
||||
.uninit = aesni_gcm_uninit
|
||||
};
|
||||
|
@ -715,9 +715,6 @@ cryptodev_aesni_mb_uninit(const char *name)
|
||||
}
|
||||
|
||||
static struct rte_vdev_driver cryptodev_aesni_mb_pmd_drv = {
|
||||
.driver = {
|
||||
.type = PMD_VDEV,
|
||||
},
|
||||
.init = cryptodev_aesni_mb_init,
|
||||
.uninit = cryptodev_aesni_mb_uninit
|
||||
};
|
||||
|
@ -651,9 +651,6 @@ cryptodev_kasumi_uninit(const char *name)
|
||||
}
|
||||
|
||||
static struct rte_vdev_driver cryptodev_kasumi_pmd_drv = {
|
||||
.driver = {
|
||||
.type = PMD_VDEV,
|
||||
},
|
||||
.init = cryptodev_kasumi_init,
|
||||
.uninit = cryptodev_kasumi_uninit
|
||||
};
|
||||
|
@ -269,9 +269,6 @@ cryptodev_null_uninit(const char *name)
|
||||
}
|
||||
|
||||
static struct rte_vdev_driver cryptodev_null_pmd_drv = {
|
||||
.driver = {
|
||||
.type = PMD_VDEV,
|
||||
},
|
||||
.init = cryptodev_null_init,
|
||||
.uninit = cryptodev_null_uninit
|
||||
};
|
||||
|
@ -639,9 +639,6 @@ cryptodev_snow3g_uninit(const char *name)
|
||||
}
|
||||
|
||||
static struct rte_vdev_driver cryptodev_snow3g_pmd_drv = {
|
||||
.driver = {
|
||||
.type = PMD_VDEV,
|
||||
},
|
||||
.init = cryptodev_snow3g_init,
|
||||
.uninit = cryptodev_snow3g_uninit
|
||||
};
|
||||
|
@ -890,9 +890,6 @@ rte_pmd_af_packet_devuninit(const char *name)
|
||||
}
|
||||
|
||||
static struct rte_vdev_driver pmd_af_packet_drv = {
|
||||
.driver = {
|
||||
.type = PMD_VDEV,
|
||||
},
|
||||
.init = rte_pmd_af_packet_devinit,
|
||||
.uninit = rte_pmd_af_packet_devuninit,
|
||||
};
|
||||
|
@ -2509,9 +2509,6 @@ bond_ethdev_configure(struct rte_eth_dev *dev)
|
||||
}
|
||||
|
||||
static struct rte_vdev_driver bond_drv = {
|
||||
.driver = {
|
||||
.type = PMD_VDEV,
|
||||
},
|
||||
.init = bond_init,
|
||||
.uninit = bond_uninit,
|
||||
};
|
||||
|
@ -1624,16 +1624,10 @@ rte_pmd_mpipe_devinit(const char *ifname,
|
||||
}
|
||||
|
||||
static struct rte_vdev_driver pmd_mpipe_xgbe_drv = {
|
||||
.driver = {
|
||||
.type = PMD_VDEV,
|
||||
},
|
||||
.init = rte_pmd_mpipe_devinit,
|
||||
};
|
||||
|
||||
static struct rte_vdev_driver pmd_mpipe_gbe_drv = {
|
||||
.driver = {
|
||||
.type = PMD_VDEV,
|
||||
},
|
||||
.init = rte_pmd_mpipe_devinit,
|
||||
};
|
||||
|
||||
|
@ -687,9 +687,6 @@ rte_pmd_null_devuninit(const char *name)
|
||||
}
|
||||
|
||||
static struct rte_vdev_driver pmd_null_drv = {
|
||||
.driver = {
|
||||
.type = PMD_VDEV,
|
||||
},
|
||||
.init = rte_pmd_null_devinit,
|
||||
.uninit = rte_pmd_null_devuninit,
|
||||
};
|
||||
|
@ -1084,9 +1084,6 @@ rte_pmd_pcap_devuninit(const char *name)
|
||||
}
|
||||
|
||||
static struct rte_vdev_driver pmd_pcap_drv = {
|
||||
.driver = {
|
||||
.type = PMD_VDEV,
|
||||
},
|
||||
.init = rte_pmd_pcap_devinit,
|
||||
.uninit = rte_pmd_pcap_devuninit,
|
||||
};
|
||||
|
@ -624,9 +624,6 @@ rte_pmd_ring_devuninit(const char *name)
|
||||
}
|
||||
|
||||
static struct rte_vdev_driver pmd_ring_drv = {
|
||||
.driver = {
|
||||
.type = PMD_VDEV,
|
||||
},
|
||||
.init = rte_pmd_ring_devinit,
|
||||
.uninit = rte_pmd_ring_devuninit,
|
||||
};
|
||||
|
@ -925,9 +925,6 @@ rte_pmd_vhost_devuninit(const char *name)
|
||||
}
|
||||
|
||||
static struct rte_vdev_driver pmd_vhost_drv = {
|
||||
.driver = {
|
||||
.type = PMD_VDEV,
|
||||
},
|
||||
.init = rte_pmd_vhost_devinit,
|
||||
.uninit = rte_pmd_vhost_devuninit,
|
||||
};
|
||||
|
@ -463,9 +463,6 @@ virtio_user_pmd_devuninit(const char *name)
|
||||
}
|
||||
|
||||
static struct rte_vdev_driver virtio_user_driver = {
|
||||
.driver = {
|
||||
.type = PMD_VDEV,
|
||||
},
|
||||
.init = virtio_user_pmd_devinit,
|
||||
.uninit = virtio_user_pmd_devuninit,
|
||||
};
|
||||
|
@ -760,9 +760,6 @@ rte_pmd_xenvirt_devuninit(const char *name)
|
||||
}
|
||||
|
||||
static struct rte_vdev_driver pmd_xenvirt_drv = {
|
||||
.driver = {
|
||||
.type = PMD_VDEV,
|
||||
},
|
||||
.init = rte_pmd_xenvirt_devinit,
|
||||
.uninit = rte_pmd_xenvirt_devuninit,
|
||||
};
|
||||
|
@ -104,20 +104,11 @@ rte_pmd_debug_trace(const char *func_name, const char *fmt, ...)
|
||||
/** Double linked list of device drivers. */
|
||||
TAILQ_HEAD(rte_driver_list, rte_driver);
|
||||
|
||||
/**
|
||||
* Driver type enumeration
|
||||
*/
|
||||
enum pmd_type {
|
||||
PMD_VDEV = 0,
|
||||
PMD_PDEV = 1,
|
||||
};
|
||||
|
||||
/**
|
||||
* A structure describing a device driver.
|
||||
*/
|
||||
struct rte_driver {
|
||||
TAILQ_ENTRY(rte_driver) next; /**< Next in list. */
|
||||
enum pmd_type type; /**< PMD Driver type */
|
||||
const char *name; /**< Driver name. */
|
||||
};
|
||||
|
||||
@ -198,15 +189,6 @@ int rte_eal_dev_detach(const char *name);
|
||||
static const char DRIVER_EXPORT_NAME_ARRAY(this_pmd_name, idx) \
|
||||
__attribute__((used)) = RTE_STR(name)
|
||||
|
||||
#define PMD_REGISTER_DRIVER(drv, nm)\
|
||||
RTE_INIT(probefn_ ##drv);\
|
||||
static void probefn_ ##drv(void)\
|
||||
{\
|
||||
(drv).name = RTE_STR(nm);\
|
||||
rte_eal_driver_register(&drv);\
|
||||
} \
|
||||
DRIVER_EXPORT_NAME(nm, __COUNTER__)
|
||||
|
||||
#define DRV_EXP_TAG(name, tag) __##name##_##tag
|
||||
|
||||
#define DRIVER_REGISTER_PCI_TABLE(name, table) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user