ethdev: fix device info getting
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Tue, 13 Nov 2018 11:12:37 +0000 (11:12 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Nov 2018 23:35:53 +0000 (00:35 +0100)
commit1a411a6fdbf18574153eb91bc9cc8b63025a2050
treee8b6bb4d144381ea7665cceb1d9c5eb2b89f4fda
parentaa28ec5d27b0ead28877081b30ccf0b74a16bbcd
ethdev: fix device info getting

The device information cannot be gotten correctly before
the configuration is set. Because on some NICs the
information has dependence on the configuration.

Fixes: 3be82f5cc5e3 ("ethdev: support PMD-tuned Tx/Rx parameters")
Cc: stable@dpdk.org
Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
lib/librte_ethdev/rte_ethdev.c