]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDS: make congestion code independent of PAGE_SIZE
authorSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 16 Nov 2015 21:28:11 +0000 (13:28 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 14 Apr 2016 00:56:36 +0000 (17:56 -0700)
commitea6e04f14569f6cc92b3a112eccbf20f4c711f34
tree32228a6a79b0a5a34b9b87964c38bc0b910a83ff
parent0355b88f57fd51f500351aa19ee1919e0cbfb00b
RDS: make congestion code independent of PAGE_SIZE

RDS congestion map code is designed with base assumption of
4K page size. The map update as well transport code assumes
it that way. Ofcourse it breaks when transport like IB starts
supporting larger fragments than 4K.

To overcome this limitation without too many changes to the core
congestion map update logic, define indepedent RDS_CONG_PAGE_SIZE
and use it.

While at it we also move rds_message_map_pages() whose sole
purpose it to map congestion pages to congestion code.

Orabug: 21894138
Reviwed-by: Wei Lin Guay <wei.lin.guay@oracle.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
net/rds/cong.c
net/rds/ib_recv.c
net/rds/message.c
net/rds/rds.h