]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit48d25a35cccf94a2c4395275753404ddb9d84aa0
treeee6e61ddb42081b00c7bb574406683d6145a25a9
parenta0a4d53ed217a684abfaf32cb1a302eba1269096
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