ethdev: support unidirectional configuration
authorReshma Pattan <reshma.pattan@intel.com>
Tue, 5 Jan 2016 16:34:58 +0000 (16:34 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 24 Feb 2016 18:15:28 +0000 (19:15 +0100)
commitd505ba80a165a9735f3d9d3c6ab68a7bd85f271b
treeb173c6679ea301ee708f6ef2aa437b3c397efce6
parentdc309365ab076481d77c60d57e65d6152bfa1642
ethdev: support unidirectional configuration

User should be able to configure ethdev with zero rx/tx queues,
but both should not be zero.
After above change, rte_eth_dev_tx_queue_config,
rte_eth_dev_rx_queue_config should allocate memory for rx/tx queues only
when number of rx/tx queues are nonzero.

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_ether/rte_ethdev.c