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)
commit7fbb3f238c09e8fcd4ce21284ed20baeaf4805cc
treef9aaf7a2c760ce45363a8793ebd4d359f7ddd0b0
parent651cd2652339d5223bab9802faaf0a7f14c870b7
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