sfc: attach an MAE counter to TC actions that need it
authorEdward Cree <ecree.xilinx@gmail.com>
Mon, 14 Nov 2022 13:15:59 +0000 (13:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2022 09:07:03 +0000 (09:07 +0000)
commit2e0f1eb05692b489bb9fdd30617b52022a93b2e3
tree37920c82e4f425c56cdb70af1ca1dc0a5fce5287
parentc4bad432b95a91a4f123159e5b8220bd026dc166
sfc: attach an MAE counter to TC actions that need it

The only actions that expect stats (that sfc HW supports) are gact shot
 (drop), mirred redirect and mirred mirror.  Since these are 'deliverish'
 actions that end an action-set, we only require at most one counter per
 action-set.

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/tc.c
drivers/net/ethernet/sfc/tc.h