IB/mlx4: Use flow counters on IBoE ports
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 15 Jun 2011 14:49:57 +0000 (14:49 +0000)
committerRoland Dreier <roland@purestorage.com>
Tue, 19 Jul 2011 04:04:36 +0000 (21:04 -0700)
commitcfcde11c3d7ae175f49280bb6f913478c2f1bd8c
tree1d6bc41c59035f791bd27f8d34fb95eb667a691f
parent6aea213a62122701891fe55cc3405d31b927cfde
IB/mlx4: Use flow counters on IBoE ports

Allocate flow counter per Ethernet/IBoE port, and attach this counter
to all the QPs created on that port.  Based on 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/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx4/mlx4_ib.h
drivers/infiniband/hw/mlx4/qp.c
include/linux/mlx4/qp.h