IB/mlx5: Expose correct max_fast_reg_page_list_len
authorSagi Grimberg <sagig@mellanox.com>
Thu, 3 Mar 2016 11:37:51 +0000 (13:37 +0200)
committerDoug Ledford <dledford@redhat.com>
Fri, 4 Mar 2016 16:59:34 +0000 (11:59 -0500)
commit911f4331bc87f4589b9096f4fb24b335d4c2967d
tree09d2f965f09b50e842eeb9b52fe41bb8290e2bea
parent0025b0bdeae7c13b8ab1dce64b0108ed9c071e2e
IB/mlx5: Expose correct max_fast_reg_page_list_len

While documentation indicates that the number of translation
entries per memory key is unlimited, in practice, we can
only fit a finite amount of translation entries in a single
registration wqe (which is log_max_klm_list_size).

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c