net/mlx4_core: Add helper to query counters
authorEran Ben Elisha <eranbe@mellanox.com>
Mon, 15 Jun 2015 14:59:05 +0000 (17:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jun 2015 00:23:02 +0000 (17:23 -0700)
commit9616982f3fcc9e6577d7f41009c4ef2df19a71ec
tree96f0e59cff49a2b82fe94cb08c0dc6c65ef0ca6c
parent7193a141eb74579ce7ff242c9f842a5c36c4bf69
net/mlx4_core: Add helper to query counters

This is an infrastructure step for querying VF and PF counters.

This code was in the IB driver, move it to the mlx4 core driver
so it will be accessible for more use cases.

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>
drivers/infiniband/hw/mlx4/mad.c
drivers/net/ethernet/mellanox/mlx4/cmd.c
include/linux/mlx4/cmd.h
include/linux/mlx4/device.h