sfc: accumulate MAE counter values from update packets
authorEdward Cree <ecree.xilinx@gmail.com>
Mon, 14 Nov 2022 13:15:58 +0000 (13:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2022 09:07:02 +0000 (09:07 +0000)
commitc4bad432b95a91a4f123159e5b8220bd026dc166
treee02b004d0e83bc40a6994953eee5fb7433afb6bb
parent0363aa295781a3ad160b2b562dc0460b331db06c
sfc: accumulate MAE counter values from update packets

Add the packet and byte counts to the software running total, and store
 the latest jiffies every time the counter is bumped.

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