drivers: add virtio and xenvirt parameters infos
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Sat, 9 Jul 2016 01:06:13 +0000 (02:06 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 10 Jul 2016 12:51:09 +0000 (14:51 +0200)
Virtio and Xenvirt are two virtual device drivers that admit
arguments, so DRIVER_REGISTER_PARAM_STRING should be used
in them.

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

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
drivers/net/virtio/virtio_user_ethdev.c
drivers/net/xenvirt/rte_eth_xenvirt.c

index 8eb166e..27b6d60 100644 (file)
@@ -437,3 +437,9 @@ static struct rte_driver virtio_user_driver = {
 };
 
 PMD_REGISTER_DRIVER(virtio_user_driver, virtio_user);
+DRIVER_REGISTER_PARAM_STRING(virtio_user,
+       "path=<path> "
+       "mac=<mac addr> "
+       "cq=<int> "
+       "queue_size=<int> "
+       "queues=<int>");
index b940e94..99f6cc8 100644 (file)
@@ -766,3 +766,5 @@ static struct rte_driver pmd_xenvirt_drv = {
 };
 
 PMD_REGISTER_DRIVER(pmd_xenvirt_drv, eth_xenvirt);
+DRIVER_REGISTER_PARAM_STRING(eth_xenvirt,
+       "mac=<mac addr>");