]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
sfc: add functions to allocate/free MAE counters
authorEdward Cree <ecree.xilinx@gmail.com>
Mon, 14 Nov 2022 13:15:57 +0000 (13:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2022 09:07:02 +0000 (09:07 +0000)
commit0363aa295781a3ad160b2b562dc0460b331db06c
tree39144e15a74d32a97e5676e63c73238f6d6ea725
parent19a0c989104a08c07c97f8713d083cc635ef8d01
sfc: add functions to allocate/free MAE counters

efx_tc_flower_get_counter_index() will create an MAE counter mapped to
 the passed (TC filter) cookie, or increment the reference if one already
 exists for that cookie.

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