octeontx2-pf: add tc flower stats handler for hw offloads
authorNaveen Mamindlapalli <naveenm@marvell.com>
Thu, 18 Mar 2021 10:02:14 +0000 (15:32 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Mar 2021 18:37:22 +0000 (11:37 -0700)
commitd8ce30e0cf76afe2dd1acfd3f64f66a8afdfa539
tree7c348ace4d7f5aa71ca1f24d1acc847c47cca2e3
parent1d4d9e42c2406bc7599f5a5b7a49b71dced34b1e
octeontx2-pf: add tc flower stats handler for hw offloads

Add support to get the stats for tc flower flows that are
offloaded to hardware. To support this feature, added a
new AF mbox handler which returns the MCAM entry stats
for a flow that has hardware stat counter enabled.

Signed-off-by: Naveen Mamindlapalli <naveenm@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_npc.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c