summaryrefslogtreecommitdiff
path: root/drivers/net/af_packet
diff options
context:
space:
mode:
authorJan Viktorin <viktorin@rehivetech.com>2016-09-20 18:11:29 +0530
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-10-03 16:33:48 +0200
commitfe363dd42505612b966f81caa41712fa4edba6ee (patch)
treea7226870669a2dfea5e42feaf03754fd29e85bca /drivers/net/af_packet
parent7d299777ecee75bbc4314b92009a9d7daf87c462 (diff)
downloaddpdk-next-eventdev-fe363dd42505612b966f81caa41712fa4edba6ee.zip
dpdk-next-eventdev-fe363dd42505612b966f81caa41712fa4edba6ee.tar.gz
dpdk-next-eventdev-fe363dd42505612b966f81caa41712fa4edba6ee.tar.xz
drivers: use vdev registration
All PMD_VDEV drivers can now use rte_vdev_driver instead of the rte_driver (which is embedded in the rte_vdev_driver). 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>
Diffstat (limited to 'drivers/net/af_packet')
-rw-r--r--drivers/net/af_packet/rte_eth_af_packet.c10
1 files changed, 6 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 93ae2d7..050f8fc 100644
--- a/drivers/net/af_packet/rte_eth_af_packet.c
+++ b/drivers/net/af_packet/rte_eth_af_packet.c
@@ -40,7 +40,7 @@
#include <rte_ethdev.h>
#include <rte_malloc.h>
#include <rte_kvargs.h>
-#include <rte_dev.h>
+#include <rte_vdev.h>
#include <linux/if_ether.h>
#include <linux/if_packet.h>
@@ -889,13 +889,15 @@ rte_pmd_af_packet_devuninit(const char *name)
return 0;
}
-static struct rte_driver pmd_af_packet_drv = {
- .type = PMD_VDEV,
+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,
};
-PMD_REGISTER_DRIVER(pmd_af_packet_drv, net_af_packet);
+DRIVER_REGISTER_VDEV(net_af_packet, pmd_af_packet_drv);
DRIVER_REGISTER_PARAM_STRING(net_af_packet,
"iface=<string> "
"qpairs=<int> "