]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
IB/mlx4: Fix use of flow-counters for process_mad
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 25 Jun 2015 14:45:38 +0000 (17:45 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 14 Jul 2015 17:20:14 +0000 (13:20 -0400)
commit43bfb9729ea88d46e3f4d3ad7b17106c7b071fcb
tree7723ad040d935dc50a06a4beb394d8f6d634478d
parentcb1ff431c3dd904cda37d6d07d4a3ea29840d621
IB/mlx4: Fix use of flow-counters for process_mad

For IB links, reading HCA flow counters through iboe_process_mad() should
be used when mlx4_ib_process_mad() is invoked only for VFs PMA queries and
exactly nothing else.

Fixes: 7193a141eb74 ('IB/mlx4: Set VF to read from QP counters')
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/mad.c