diff options
author | Eran Ben Elisha <eranbe@mellanox.com> | 2015-06-15 17:59:02 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-15 17:23:02 -0700 |
commit | 6de5f7f6a1fa2288552d46b3effbb6d5571413e5 (patch) | |
tree | bcdd1b0cd0e8278da2552274e10b589518333bcf /drivers/net/ethernet/mellanox/mlx4/mlx4.h | |
parent | 68230242cdbcc34d14f664358f8a2392ec1a9f2d (diff) | |
download | op-kernel-dev-6de5f7f6a1fa2288552d46b3effbb6d5571413e5.zip op-kernel-dev-6de5f7f6a1fa2288552d46b3effbb6d5571413e5.tar.gz |
net/mlx4_core: Allocate default counter per port
Default counter per port will be allocated at the mlx4 core driver load.
Every QP opened by the Ethernet driver will be attached to the port's default
counter. This is an infrastructure step to collect VF statistics from the PF.
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/mlx4.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/mlx4.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4.h b/drivers/net/ethernet/mellanox/mlx4/mlx4.h index 8d2d359..e9e94bc 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mlx4.h +++ b/drivers/net/ethernet/mellanox/mlx4/mlx4.h @@ -876,6 +876,7 @@ struct mlx4_priv { struct mlx4_qp_table qp_table; struct mlx4_mcg_table mcg_table; struct mlx4_bitmap counters_bitmap; + int def_counter[MLX4_MAX_PORTS]; struct mlx4_catas_err catas_err; |