net/mvpp2: fix configured state dependency
authorDana Vardi <danat@marvell.com>
Sun, 11 Jul 2021 13:12:49 +0000 (16:12 +0300)
committerJerin Jacob <jerinj@marvell.com>
Mon, 12 Jul 2021 08:31:21 +0000 (10:31 +0200)
commite622c1a88e3507dc6d2c9dd6ec555905d1b5baf1
tree3d44ceff42dfe9352c953330027946572229c01b
parent8fa07a68a6f842aa81b8949976e8088e2b6318a3
net/mvpp2: fix configured state dependency

Need to set configure flag to allow create and commit mrvl tm
hierarchy tree. tm configuration depends on parameters that are
being set in port configure stage, e.g. nb_tx_queues.
This also aligned with the tm api description.

Fixes: 429c394417 ("net/mvpp2: support traffic manager")
Cc: stable@dpdk.org
Signed-off-by: Dana Vardi <danat@marvell.com>
Reviewed-by: Liron Himi <lironh@marvell.com>
drivers/net/mvpp2/mrvl_ethdev.c
drivers/net/mvpp2/mrvl_ethdev.h
drivers/net/mvpp2/mrvl_tm.c