diff options
author | Amir Vadai <amirva@mellanox.com> | 2016-05-13 12:55:39 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-16 13:43:51 -0400 |
commit | 9dc0b289c4c09bc1a92bdcc055cb37af9b72eb28 (patch) | |
tree | 2cfc535ac1d6ec859ed59b6a9112701c5d79d9b9 /drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.h | |
parent | net/mlx5_core: Use a macro in mlx5_command_str() (diff) | |
download | linux-dev-9dc0b289c4c09bc1a92bdcc055cb37af9b72eb28.tar.xz linux-dev-9dc0b289c4c09bc1a92bdcc055cb37af9b72eb28.zip |
net/mlx5_core: Firmware commands to support flow counters
Getting packet/byte statistics on flows is done through flow counters.
Implement the firmware commands to alloc, free and query flow counters.
Signed-off-by: Amir Vadai <amirva@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.h b/drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.h index c97b4a03eeed..18c111a4691f 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.h @@ -70,4 +70,9 @@ int mlx5_cmd_delete_fte(struct mlx5_core_dev *dev, int mlx5_cmd_update_root_ft(struct mlx5_core_dev *dev, struct mlx5_flow_table *ft); + +int mlx5_cmd_fc_alloc(struct mlx5_core_dev *dev, u16 *id); +int mlx5_cmd_fc_free(struct mlx5_core_dev *dev, u16 id); +int mlx5_cmd_fc_query(struct mlx5_core_dev *dev, u16 id, + u64 *packets, u64 *bytes); #endif |