]> 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)
commit25aa9203085b156f5b033cb70b1b0594eddbf3d5
tree4c5463c8a81897dd80591e5c2260fd86a1a544ac
parentf6d58dfa5b2ffeaac26773634560c6c77b6bf5c7
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