RDS: make message size limit compliant with spec
authorAvinash Repaka <avinash.repaka@oracle.com>
Mon, 29 Feb 2016 23:30:57 +0000 (15:30 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:39:10 +0000 (08:39 +0000)
commitaa85ae9db9d123c3d37645bbd491f9fe89b43ece
treefffd3087804e8074455bd3652409b9f0df42de26
parent65ce358100eaf7f7a8ab2b7dc949d562162d1f60
RDS: make message size limit compliant with spec

[ Upstream commit f9fb69adb6c7acca60977a4db5a5f95b8e66c041 ]

RDS support max message size as 1M but the code doesn't check this
in all cases. Patch fixes it for RDMA & non-RDMA and RDS MR size
and its enforced irrespective of underlying transport.

Signed-off-by: Avinash Repaka <avinash.repaka@oracle.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/rds/rdma.c
net/rds/rds.h
net/rds/send.c