diff options
author | Oz Shlomo <ozsh@nvidia.com> | 2023-02-12 15:25:20 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-02-14 11:00:01 +0100 |
commit | 2b68d659a704abaa61fb3255776b5483bdc4eb35 (patch) | |
tree | 96f4a2990f970246a9c1cc515fcfa8a0d09f2a72 /drivers/net/ethernet/mellanox/mlx5/core/en/tc_priv.h | |
parent | d13674b1d14c68339173db5dd39c4ab0949234e7 (diff) | |
download | linux-stable-2b68d659a704abaa61fb3255776b5483bdc4eb35.tar.gz linux-stable-2b68d659a704abaa61fb3255776b5483bdc4eb35.tar.bz2 linux-stable-2b68d659a704abaa61fb3255776b5483bdc4eb35.zip |
net/mlx5e: TC, support per action stats
Extend the action stats callback implementation to update stats for actions
that are associated with hw counters.
Note that the callback may be called from tc action utility or from tc
flower. Both apis expect the driver to return the stats difference from
the last update. As such, query the raw counter value and maintain
the diff from the last api call in the tc layer, instead of the fs_core
layer.
Signed-off-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en/tc_priv.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en/tc_priv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/tc_priv.h b/drivers/net/ethernet/mellanox/mlx5/core/en/tc_priv.h index f575646d2f50..451fd4342a5a 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/tc_priv.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/tc_priv.h @@ -30,6 +30,7 @@ enum { MLX5E_TC_FLOW_FLAG_TUN_RX = MLX5E_TC_FLOW_BASE + 9, MLX5E_TC_FLOW_FLAG_FAILED = MLX5E_TC_FLOW_BASE + 10, MLX5E_TC_FLOW_FLAG_SAMPLE = MLX5E_TC_FLOW_BASE + 11, + MLX5E_TC_FLOW_FLAG_USE_ACT_STATS = MLX5E_TC_FLOW_BASE + 12, }; struct mlx5e_tc_flow_parse_attr { |