net/octeontx2: fix TM node statistics query
authorSatha Rao <skoteshwar@marvell.com>
Wed, 7 Jul 2021 16:49:16 +0000 (12:49 -0400)
committerJerin Jacob <jerinj@marvell.com>
Tue, 13 Jul 2021 09:29:11 +0000 (11:29 +0200)
commitd9dda782ac08a47ca092a0c499b21635b23e6644
treeb753a6f9fac965acd034e9cafba45cb7d70544cb
parent12e491a6b615d70fd057d54aab5cf17c11e846be
net/octeontx2: fix TM node statistics query

Until hierarchy committed TM hardware resources are not allocated
for node.
This patch check for status of HW resources before reading statistics.

Fixes: 1e25d57fae38 ("net/octeontx2: add TM stats and shaper profile")
Cc: stable@dpdk.org
Signed-off-by: Satha Rao <skoteshwar@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/octeontx2/otx2_tm.c