net/mlx5e: TC, add hw counter to branching actions
authorOz Shlomo <ozsh@nvidia.com>
Sun, 12 Feb 2023 13:25:17 +0000 (15:25 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 14 Feb 2023 10:00:01 +0000 (11:00 +0100)
commite9d1061d87276d3397157ea947fa28374dcbf974
treeac251d8a80bdd8126d8dc3de3210bdbcbf859325
parent5246c896b805b043a87fa78af32a33cbce00de05
net/mlx5e: TC, add hw counter to branching actions

Currently a hw count action is appended to the last action of the action
list. However, a branching action may terminate the action list before
reaching the last action.

Append a count action to a branching action.
In the next patches, filters with branching actions will read this counter
when reporting stats per action.

Signed-off-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c