sfc: implement counters readout to TC stats
authorEdward Cree <ecree.xilinx@gmail.com>
Mon, 14 Nov 2022 13:16:01 +0000 (13:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2022 09:07:03 +0000 (09:07 +0000)
commit50f8f2f7fbf2f237a7938890f46c3edce0f51501
tree722ca9acdc66249f40a99c2bccd152a2a7714b99
parent83a187a4eb3a8d7b747e7cfd48228dbc4dbb5c92
sfc: implement counters readout to TC stats

On FLOW_CLS_STATS, look up the MAE counter by TC cookie, and report the
 change in packet and byte count since the last time FLOW_CLS_STATS read
 them.

Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/tc.c
drivers/net/ethernet/sfc/tc_counters.c
drivers/net/ethernet/sfc/tc_counters.h