]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc8a5afb8632d841e3b2ae8d35ade215f31738fa9
tree4c5463c8a81897dd80591e5c2260fd86a1a544ac
parent66a1e415dbe93b55269d448d2ff9622052147e45
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