]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
IB/mlx5: Use u64 for UMR length
authorMaor Gottlieb <maorg@mellanox.com>
Sun, 27 Nov 2016 13:18:22 +0000 (15:18 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 13 Dec 2016 18:39:47 +0000 (13:39 -0500)
The fast_registration length is used to convey length for memory
registrations through UMR which can be of any size up to 2^64.

Change the length type to be u64.

Fixes: 968e78dd9644 ('IB/mlx5: Enhance UMR support to allow partial page table update')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h

index ff05afa864ee3f7c41817dac7a3130243ff06afd..df3d6af3f683e02c71560e6f837362f225fdc99d 100644 (file)
@@ -420,7 +420,7 @@ struct mlx5_umr_wr {
        struct ib_pd                   *pd;
        unsigned int                    page_shift;
        unsigned int                    npages;
-       u32                             length;
+       u64                             length;
        int                             access_flags;
        u32                             mkey;
 };