net/octeontx2: fix device configuration sequence
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Sat, 4 Apr 2020 15:19:50 +0000 (20:49 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:06 +0000 (13:57 +0200)
commitb372fff7d490ba6f127de310bf52b3eb838267c8
tree5a26d10cc1d6709e21d9e78e85af106661f1c8f3
parent3912fbde152a49c7fc219421d7285da3cceb9d32
net/octeontx2: fix device configuration sequence

When an application invokes rte_eth_dev_configure consecutively without
setting up Rx/Tx queues, it will incorrectly return error while trying
to restore Rx/Tx queue configuration.

Fix configuration sequence by checking if any Rx/Tx queues are
previously configured before trying to restore them.

Fixes: 548b5839a32b ("net/octeontx2: add device configure operation")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/octeontx2/otx2_ethdev.c
drivers/net/octeontx2/otx2_ethdev.h