net/mlx5_core: Introduce flow steering destination of type counter
When adding a flow steering rule with a counter, need to supply a destination of type MLX5_FLOW_DESTINATION_TYPE_COUNTER, with a pointer to a struct mlx5_fc. Also, MLX5_FLOW_CONTEXT_ACTION_COUNT bit should be set in the action. Signed-off-by:Amir Vadai <amirva@mellanox.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c 30 additions, 6 deletionsdrivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
- drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.h 1 addition, 0 deletionsdrivers/net/ethernet/mellanox/mlx5/core/fs_cmd.h
- drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 48 additions, 4 deletionsdrivers/net/ethernet/mellanox/mlx5/core/fs_core.c
- drivers/net/ethernet/mellanox/mlx5/core/fs_core.h 23 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlx5/core/fs_core.h
- include/linux/mlx5/fs.h 2 additions, 0 deletionsinclude/linux/mlx5/fs.h
- include/linux/mlx5/mlx5_ifc.h 2 additions, 0 deletionsinclude/linux/mlx5/mlx5_ifc.h
Loading
Please register or sign in to comment