octeontx2-af: Check whether ipolicers exists
authorSubbaraya Sundeep <sbhatta@marvell.com>
Wed, 27 Oct 2021 17:32:32 +0000 (23:02 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Oct 2021 13:47:36 +0000 (14:47 +0100)
commitcc45b96e2de7ada26520f101dada0abafa4ba997
tree4032aeb5cb53f33d6535f7a4ad6a8495534936a1
parente8684db191e4164f3f5f3ad7dec04a6734c25f1c
octeontx2-af: Check whether ipolicers exists

While displaying ingress policers information in
debugfs check whether ingress policers exist in
the hardware or not because some platforms(CN9XXX)
do not have this feature.

Fixes: e7d8971763f3 ("octeontx2-af: cn10k: Debugfs support for bandwidth")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Rakesh Babu <rsaladi2@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c