]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6cbcacb00d47439ce12f7e01e15799509edc5992
tree053a663b70ee3fada69aa5a14d13409cfb61f31e
parent3be865c559124efa4b8d4df08d3f993c25009243
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 5666c4906b80 ("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: 5666c4906b80 ("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