net/mlx5: Introduce device queue counters
authorTariq Toukan <tariqt@mellanox.com>
Wed, 20 Apr 2016 19:02:09 +0000 (22:02 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Apr 2016 19:09:04 +0000 (15:09 -0400)
commit237cd218099ce96edf2890a49aa191b38b84c2fc
treeee6e61ddb42081b00c7bb574406683d6145a25a9
parentb8fd789afb293002b11086e6ae417b7c523d2bdc
net/mlx5: Introduce device queue counters

A queue counter can collect several statistics for one or more
hardware queues (QPs, RQs, etc ..) that the counter is attached to.

For Ethernet it will provide an "out of buffer" counter which
collects the number of all packets that are dropped due to lack
of software buffers.

Here we add device commands to alloc/query/dealloc queue counters.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Rana Shahout <ranas@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/qp.c
include/linux/mlx5/qp.h