ethdev: fix memory corruption with default Rx/Tx configuration
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 20 Oct 2014 17:26:35 +0000 (18:26 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 20 Oct 2014 21:50:14 +0000 (23:50 +0200)
commit06cada9fc6f0de50c10a27d55615299d1ac906e0
treee71ab21001d5bf4a846d26d4688fcbcda3cc75ee
parent075e064089e1c2b6899db58c69be1a387eb5ffa7
ethdev: fix memory corruption with default Rx/Tx configuration

Commit fbde27f1 (get default Rx/Tx configuration from dev info),
introduced a bug, which caused memory corruption in dev_info.
To get RX/TX configuration, both rx/tx queue setup functions were calling
dev_info_get from PMDs, so dev_info structure was not being reseted
before being populated.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_ether/rte_ethdev.c