IB/mlx4: Add IB counters table
authorEran Ben Elisha <eranbe@mellanox.com>
Thu, 15 Oct 2015 11:44:40 +0000 (14:44 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 22 Oct 2015 03:16:47 +0000 (23:16 -0400)
commit3ba8e31d5a4343fa042c976a9ce9c3c16946c92d
tree7dda8d7b6ad7e20701a4f49aa2d9cd25daacde1c
parent74194fb9c80cedb3130d26802c52deec3caebc75
IB/mlx4: Add IB counters table

This is an infrastructure step for allocating and attaching more than
one counter to QPs on the same port. Allocate a counters table and
manage the insertion and removals of the counters in load and unload of
mlx4 IB.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/mad.c
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx4/mlx4_ib.h
drivers/infiniband/hw/mlx4/qp.c