]> 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)
commit419c11ba1fcef413785273dfce10cd281892593a
tree7723ad040d935dc50a06a4beb394d8f6d634478d
parent76f010c77edbcbb4c7aadcf0e9be56d7cd7926a1
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: ebf7ef151425 ('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