ixgbe: set default Rx/Tx configuration
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 1 Oct 2014 09:49:04 +0000 (10:49 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 10 Oct 2014 10:54:19 +0000 (12:54 +0200)
commit9fad0ce847f254c0e6844135f6e8804b29866eb5
tree49efd121da5500f7e791292158f02812586971cf
parent90daa93a1cd1760f95c7504065c58ce552fac315
ixgbe: set default Rx/Tx configuration

Many sample apps use duplicated code to set rte_eth_txconf and rte_eth_rxconf
structures. This patch allows the user to get a default optimal RX/TX configuration
through rte_eth_dev_info get, and still any parameters may be tweaked as wished,
before setting up queues.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Reviewed-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: David Marchand <david.marchand@6wind.com>
[Thomas: split patch]
lib/librte_pmd_ixgbe/ixgbe_ethdev.c