]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Diagnostic HW counters are not supported in slave mode
authorKamal Heib <kamalh@mellanox.com>
Mon, 12 Sep 2016 16:16:22 +0000 (19:16 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 16 Sep 2016 18:14:08 +0000 (14:14 -0400)
commit70f512df9e20b2e2e508dfb015b06a208812a0ce
treead2395cd655aa43b89f146e6c4ed4259fd7f2d89
parent24b950613fa803e272ba908286933b5c0bb45b8d
IB/mlx4: Diagnostic HW counters are not supported in slave mode

Modify the mlx4_ib_diag_counters() to avoid the following error in the
hypervisor when the slave tries to query the hardware counters in SR-IOV
mode.

mlx4_core 0000:81:00.0: Unknown command:0x30 accepted from slave:1

Fixes: f344107e9617 ("IB/mlx4: Add diagnostic hardware counters")
Signed-off-by: Kamal Heib <kamalh@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/main.c