]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Support for NPC MCAM counters
authorSunil Goutham <sgoutham@marvell.com>
Mon, 19 Nov 2018 10:47:29 +0000 (16:17 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Nov 2018 01:56:07 +0000 (17:56 -0800)
commit2fdd103ca448b4bb79c9f7474fd7fe0222fa9d93
treef9aaf7a2c760ce45363a8793ebd4d359f7ddd0b0
parentaf7dfe434fe4c12e4ca207ab157edf0221efab9e
octeontx2-af: Support for NPC MCAM counters

NPC HW has counters which can be mapped to MCAM
entries to gather entry match statistics. This
patch adds support to allocate, free, clear and retrieve
stats of NPC MCAM counters. New mailbox messages have
been added for this. Similar to MCAM entries both
contiguous and non-contiguous counter allocation is
supported.

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