RDMA/cma: Make sure that PSN is not over max allowed
authorMoni Shoua <monis@mellanox.com>
Sun, 26 Nov 2017 18:23:54 +0000 (20:23 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 1 Dec 2017 19:21:26 +0000 (12:21 -0700)
commit23a9cd2ad90543e9da3786878d2b2729c095439d
tree0e2abd89f9d2fa65d7c14d0b186a17b5fa562fee
parenta7c6dfe215a7f85c6195f09c1b9474a2ba7fea9c
RDMA/cma: Make sure that PSN is not over max allowed

This patch limits the initial value for PSN to 24 bits as
spec requires.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c