i40e: 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)
commit27b31ee33fa5e7cc9a086c690b98ed8e1a153c6a
tree0116ce4c2c79514591d2d3e9b32b96698d91a54d
parent9fad0ce847f254c0e6844135f6e8804b29866eb5
i40e: 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_i40e/i40e_ethdev.c