app/testpmd: fix crash when attaching a device
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Wed, 13 Jun 2018 16:27:43 +0000 (18:27 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jun 2018 17:27:50 +0000 (19:27 +0200)
commit422515b9aab0f1161631276d682303356e243c07
treeb72568feb5a9335191835a033b303bc74d67beac
parent5936aa3a39b9be317622af808834ad85d26e86f6
app/testpmd: fix crash when attaching a device

Below commit checks global device information to determine if a port uses
the softnic driver once initialized. Problem is that this information is
not available at this point when a port is initialized interactively
through a "port attach XXX" command, crashing testpmd.

This patch systematically initializes global device information to address
this issue.

Fixes: 5b590fbe09b6 ("app/testpmd: add traffic management forwarding mode")
Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
app/test-pmd/testpmd.c