]> git.baikalelectronics.ru Git - 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)
commit2ea39575f37885c23ef95e4d980f2e96303bc0d5
tree7723ad040d935dc50a06a4beb394d8f6d634478d
parent7efc3cd2b53ef125c31c6bb7ea8ef58d7297f261
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: f100ca83be46 ('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