]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
IB/mlx5: Use unlimited rate when static rate is not supported
authorDanit Goldberg <danitg@mellanox.com>
Mon, 23 Apr 2018 14:01:54 +0000 (17:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 May 2018 08:06:48 +0000 (10:06 +0200)
commitf463b6cbcef0732e791aedaaaf7de2a3a0155286
treeabab4c1266f64d9a5082a0334d1867b5553be044
parentd45b701691b36f555c585c25cf3d53f7610feda5
IB/mlx5: Use unlimited rate when static rate is not supported

commit 4f32ac2e452c2180cd2df581cbadac183e27ecd0 upstream.

Before the change, if the user passed a static rate value different
than zero and the FW doesn't support static rate,
it would end up configuring rate of 2.5 GBps.

Fix this by using rate 0; unlimited, in cases where FW
doesn't support static rate configuration.

Cc: <stable@vger.kernel.org> # 3.10
Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters")
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Danit Goldberg <danitg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/mlx5/qp.c