]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5_core: Introduce flow steering destination of type counter
authorAmir Vadai <amirva@mellanox.com>
Fri, 13 May 2016 12:55:40 +0000 (12:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2016 17:43:51 +0000 (13:43 -0400)
commitbd5251dbf156b6bc0661a9409d46e47160df61dd
tree4d2fa3780ab1a0c30c6b1814245e84fe1b69e22c
parent9dc0b289c4c09bc1a92bdcc055cb37af9b72eb28
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>
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.h
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
include/linux/mlx5/fs.h
include/linux/mlx5/mlx5_ifc.h