mlx4_core: Add network flow counters
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 15 Jun 2011 14:47:14 +0000 (14:47 +0000)
committerRoland Dreier <roland@purestorage.com>
Tue, 19 Jul 2011 04:04:34 +0000 (21:04 -0700)
commitf2a3f6a32cf64db1495b5ced8625b9a80bde44e5
tree68508cf4a5f67e2380b6b6fa158bb776e3b69a91
parent98a13e487a3bdac8508e4dcb98d63385fabe6767
mlx4_core: Add network flow counters

ConnectX devices support a set of flow counters that can be attached
to a set containing one or more QPs.  Each such counter tracks receive
and transmit packets and bytes of these QPs.  This patch queries the
device to check support for counters, handles initialization of the
HCA to enable counters, and initializes a bitmap allocator to control
counter allocations.  Derived from patch by Eli Cohen <eli@mellanox.co.il>.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.co.il>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/mlx4/fw.c
drivers/net/mlx4/fw.h
drivers/net/mlx4/main.c
drivers/net/mlx4/mlx4.h
include/linux/mlx4/cmd.h
include/linux/mlx4/device.h