diff options
author | Kamal Heib <kamalh@mellanox.com> | 2017-01-18 14:10:32 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-02-14 10:14:25 -0500 |
commit | 45bded2c216da6010184ac5ebe88c27f73439009 (patch) | |
tree | 7910d9250962b3a1ad704702c28129c1fffeb0b8 /drivers/infiniband/hw/mlx5/mad.c | |
parent | IB/mlx5: Return error for unsupported signature type (diff) | |
download | linux-dev-45bded2c216da6010184ac5ebe88c27f73439009.tar.xz linux-dev-45bded2c216da6010184ac5ebe88c27f73439009.zip |
IB/mlx5: Verify that Q counters are supported
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')
Cc: <stable@vger.kernel.org> # v4.7+
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>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/mad.c')
0 files changed, 0 insertions, 0 deletions