IB/mlx5: Fix RC transport send queue overhead computation
authorLeon Romanovsky <leon@leon.nu>
Thu, 11 Feb 2016 19:09:57 +0000 (21:09 +0200)
committerDoug Ledford <dledford@redhat.com>
Fri, 12 Feb 2016 19:56:08 +0000 (14:56 -0500)
commit75c1657e1d50730dc0130a67977f7831a4e241f4
tree053a663b70ee3fada69aa5a14d13409cfb61f31e
parent08bc327629cbd63bb2f66677e4b33b643695097c
IB/mlx5: Fix RC transport send queue overhead computation

Fix the RC QPs send queue overhead computation to take into account
two additional segments in the WQE which are needed for registration
operations.

The ATOMIC and UMR segments can't coexist together, so chose maximum out
of them.

The commit 9e65dc371b5c ("IB/mlx5: Fix RC transport send queue overhead
computation") was intended to update RC transport as commit messages
states, but added the code to UC transport.

Fixes: 9e65dc371b5c ("IB/mlx5: Fix RC transport send queue overhead computation")
Signed-off-by: Kamal Heib <kamalh@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/qp.c