]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Handle udate outlen checks in one place
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 27 Apr 2020 15:46:32 +0000 (18:46 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 30 Apr 2020 21:45:45 +0000 (18:45 -0300)
commit79dc1a7a650feb26e32c15c3b2bbaed46222aa4d
tree077f4b111be9c2b87ba23b9997a5ed2763907a6d
parent5c09d293c9bf92244585d14f87ff5424fd3752b9
RDMA/mlx5: Handle udate outlen checks in one place

Place in one function all udata size checks. This will allow
us move ib_copy_to_udata() in general place and ensure that
it will be performed after call to the FW.

Link: https://lore.kernel.org/r/20200427154636.381474-33-leon@kernel.org
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c