]> 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)
commitdc64ebc9cb1c51b0665632c66be3cd307fbc8165
tree053a663b70ee3fada69aa5a14d13409cfb61f31e
parent036acee9390bf91619c56d37d3f41e532406442d
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 9fddc8583999 ("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: 9fddc8583999 ("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