net/dpaa2: set queues after reconfiguration
authorAkhil Goyal <akhil.goyal@nxp.com>
Wed, 1 Nov 2017 08:16:41 +0000 (13:46 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 1 Nov 2017 21:17:06 +0000 (22:17 +0100)
commitf9989673654c1d177f2be6e6fc1778453a141b45
treec7829839bbee8f7316969586512c4006f472bd38
parent25a987433bd16d18086e7875162641374b9a47cf
net/dpaa2: set queues after reconfiguration

if dpaa2_dev_tx_queue_setup is called multiple times, the
assignment of device->data->tx_queues is not done, as a result
tx_queues remain NULL after reconfiguration.

This patch sets the tx_queues from the device private data to the
usable device tx queues.

Fixes: 7ae777d064e8 ("net/dpaa2: add support for congestion notification")
Cc: stable@dpdk.org
Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/net/dpaa2/dpaa2_ethdev.c