net/ena: get device info statically
authorMichal Krawczyk <mk@semihalf.com>
Fri, 15 Feb 2019 08:36:39 +0000 (09:36 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Feb 2019 15:41:43 +0000 (16:41 +0100)
commit117ba4a60488a0f96a5737f38ddba6d0f9a728b6
tree469437c9345aa1aafb291d4106e6555050309b93
parentd7bce0058a241a4d9b03e295bd74e6957b040d1e
net/ena: get device info statically

Whenever the app is calling rte_eth_dev_info_get(), it shouldn't use the
admin command. It was causing problems, if it was called from the
secondary process - the main process was crashing, and the secondary app
wasn't getting any result, as the admin request couldn't be processed by
the process which was requesting the data.

To fix that, the data is being written to the adapter structure during
device initialization routine.

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
drivers/net/ena/ena_ethdev.c
drivers/net/ena/ena_ethdev.h