drivers: add virtio and xenvirt parameters infos

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>
This commit is contained in:
Pablo de Lara 2016-07-09 02:06:13 +01:00 committed by Thomas Monjalon
parent 65eca099f4
commit 44e32a671d
2 changed files with 8 additions and 0 deletions

View 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>");

View 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>");