summaryrefslogtreecommitdiff
path: root/drivers/net/af_packet
diff options
context:
space:
mode:
authorShreyansh Jain <shreyansh.jain@nxp.com>2016-10-06 19:24:03 +0530
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-10-06 16:02:14 +0200
commit50a3345fa9ea6482f197567497b0b8d201173a59 (patch)
tree06fc288fda333bfed229524c2be3c530dcdc9eb2 /drivers/net/af_packet
parent11fd19f7646743c973b9de52d75120045e62f116 (diff)
downloaddpdk-next-eventdev-50a3345fa9ea6482f197567497b0b8d201173a59.zip
dpdk-next-eventdev-50a3345fa9ea6482f197567497b0b8d201173a59.tar.gz
dpdk-next-eventdev-50a3345fa9ea6482f197567497b0b8d201173a59.tar.xz
vdev: rename init/uninit ops to probe/remove
Inline with PCI probe and remove, VDEV probe and remove hooks provide a uniform naming. PCI probe represents scan and driver initialization. For VDEV, it will represent argument parsing and initialization. Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
Diffstat (limited to 'drivers/net/af_packet')
-rw-r--r--drivers/net/af_packet/rte_eth_af_packet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c
index 5f48ead..6777c41 100644
--- a/drivers/net/af_packet/rte_eth_af_packet.c
+++ b/drivers/net/af_packet/rte_eth_af_packet.c
@@ -820,7 +820,7 @@ rte_eth_from_packet(const char *name,
}
static int
-rte_pmd_af_packet_devinit(const char *name, const char *params)
+rte_pmd_af_packet_probe(const char *name, const char *params)
{
unsigned numa_node;
int ret = 0;
@@ -858,7 +858,7 @@ exit:
}
static int
-rte_pmd_af_packet_devuninit(const char *name)
+rte_pmd_af_packet_remove(const char *name)
{
struct rte_eth_dev *eth_dev = NULL;
struct pmd_internals *internals;
@@ -890,8 +890,8 @@ rte_pmd_af_packet_devuninit(const char *name)
}
static struct rte_vdev_driver pmd_af_packet_drv = {
- .init = rte_pmd_af_packet_devinit,
- .uninit = rte_pmd_af_packet_devuninit,
+ .probe = rte_pmd_af_packet_probe,
+ .remove = rte_pmd_af_packet_remove,
};
DRIVER_REGISTER_VDEV(net_af_packet, pmd_af_packet_drv);