]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
IB/mlx5: Verify that Q counters are supported
authorKamal Heib <kamalh@mellanox.com>
Wed, 18 Jan 2017 12:10:32 +0000 (14:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Mar 2017 11:18:44 +0000 (19:18 +0800)
commit42b16fffb79bb925f579d2b4e1835835088682f8
tree3d191ecc8bd081bf56ed4361e9a72428d493f0b5
parentdc37bb8db47b16395dfa05b59ee2e6fb9cbd6d07
IB/mlx5: Verify that Q counters are supported

commit 45bded2c216da6010184ac5ebe88c27f73439009 upstream.

Make sure that the Q counters are supported by the FW before trying
to allocate/deallocte them, this will avoid driver load failure when
they aren't supported by the FW.

Fixes: 0837e86a7a34 ('IB/mlx5: Add per port counters')
Signed-off-by: Kamal Heib <kamalh@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/mlx5/main.c