octeontx2-af: cn10K: Get NPC counters value
authorHariprasad Kelam <hkelam@marvell.com>
Tue, 17 Aug 2021 04:44:52 +0000 (10:14 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Aug 2021 09:06:33 +0000 (10:06 +0100)
commit99b8e5479d499bb572538f0f290e720315b78f61
tree4c5463c8a81897dd80591e5c2260fd86a1a544ac
parent7df5b4b260ddc1d20ab0e711df68c806ee393178
octeontx2-af: cn10K: Get NPC counters value

The way SW can identify the number NPC counters supported by silicon
has changed for CN10K. This patch addresses this reading appropriate
registers to find out number of counters available.

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c